Some of you suggest me to use Inno setup to build up the setup.exe
But now I am not sure where the problems are. So here is the code and hope anyone who can help me
Code:
; -- Example1.iss --
; Demonstrates copying 3 files and creating an icon.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING .ISS SCRIPT FILES!
[Setup]
AppName=AI Clock
AppVerName=AI Clock version 1.0c
DefaultDirName={pf}\NewPaT.NeT
DefaultGroupName=NewPaT.NeT
UninstallDisplayIcon={app}\AI Clock.exe
Compression=zip
SolidCompression=yes
OutputDir=userdocs:Inno Setup Examples Output
[Files]
Source: "AIClock.exe"; DestDir: "{C:\Documents and Settings\NewPaT\My Documents\Visual Studio 2005\Projects\AIClockC\AIClock\bin\Debug\}"
Source: "MyProg.chm"; DestDir: "{app}"
Source: "Readme.txt"; DestDir: "{app}"; Flags: isreadme
[Icons]
Name: "{group}\NewPaT.NeT"; Filename: "{app}\AI Clock.exe"
for starters your destdir location for your AICLock.exe should be where the file should be installed on the END USERS computer.. not where it is located on your own computer. That is what the source property is for.
Source defines where the file is on the development system that should be packaged up, and destdir defines where it should go on the end users system. Usually DestDir is just set to {app} which is the constant that equals the directory the user picked for installation during the setup.
Also, don't package an exe from the debug directory, it is not optimized and contains debugging information. You should be compiling in release mode and packaging a release exe.
And the Inno Setup Wizard is no good to create a script for you only to get you started. Try **********. It will create a total working script from the start.
for starters your destdir location for your AICLock.exe should be where the file should be installed on the END USERS computer.. not where it is located on your own computer. That is what the source property is for.
Source defines where the file is on the development system that should be packaged up, and destdir defines where it should go on the end users system. Usually DestDir is just set to {app} which is the constant that equals the directory the user picked for installation during the setup.
Also, don't package an exe from the debug directory, it is not optimized and contains debugging information. You should be compiling in release mode and packaging a release exe.
what is the meaning of packaging a release exe? I compiled with release mode and give out the AIClock.vshost
can anyone help me? I have tried to use Inno script, that really helpful without code. But I compiled with release mode and give out the AIClock.vshost. As you know there is no action with running the .vshost
can anyone help me? I have tried to use Inno script, that really helpful without code. But I compiled with release mode and give out the AIClock.vshost. As you know there is no action with running the .vshost
You should not be using the .vshost file. That is a file used when you are working with the Visual Studio IDE. You should just be packaging your exe after you compile in release mode.
I don't use VB.net but from my understanding there are support files that need to be deployed also. I would like to see your installation package so that I can deploy it to different OS's to see what happens.
there is no reason at all to distribute the .vshost file. that file is for use between your app and Visual Studio for debugging purposes. Delete that line from your setup file.
As far as "other files" that may be needed. The only other files you would need would be the .NET framework if the user does not have it, and also any specific files used by your application (like pictures, text files, etc..)
there is no reason at all to distribute the .vshost file. that file is for use between your app and Visual Studio for debugging purposes. Delete that line from your setup file.
As far as "other files" that may be needed. The only other files you would need would be the .NET framework if the user does not have it, and also any specific files used by your application (like pictures, text files, etc..)
you mean the source file should be them? so what is the main program?
I know the .exe file cannot be run by other users if they do not have vb or .NET framework
The only files you should need to package up are your AICLock.exe and the .NET framework redist.
Which means you either need to include the .NET framework redistributable package in your setup (which will add about 25MB to the file size) or indicate to users that they will need to get it via windows update before running your software.
Here is the link to the .NET 2.0 redist file that you are supposed to distribute to end users of your software.
thats mean I no need to add the API such as AxInterop.WMPLib.dll...
I just add the .Net2.0 and my exe file?then I remind the user need to install .net2.0 by himself?