-
[RESOLVED] [2005] Inno setup 5.1.13 question
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:o
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"
AI Clock is my exe in debug.
-
Re: [2005] Inno setup 5.1.13 question
Moved to Application Deployment
-
Re: [2005] Inno setup 5.1.13 question
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.
-
Re: [2005] Inno setup 5.1.13 question
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.
-
Re: [2005] Inno setup 5.1.13 question
Where is the app? I installed it..
-
Re: [2005] Inno setup 5.1.13 question
You don't need Inno Script. You only need Inno Setup from JRSoftware.
Make the changes that I advised you of above to your script, and then repost your script if you are still having problems and I will assist further.
-
Re: [2005] Inno setup 5.1.13 question
Quote:
Originally Posted by kleinma
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
-
Re: [2005] Inno setup 5.1.13 question
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
-
Re: [2005] Inno setup 5.1.13 question
I could help but you may get you hand smacked even asking about that...:p
Post your script and I will take a look...
-
Re: [2005] Inno setup 5.1.13 question
Quote:
Originally Posted by newpat
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.
Like Randem said, post your setup script.
-
1 Attachment(s)
Re: [2005] Inno setup 5.1.13 question
the script is ok and can be run. thx here~
but I just have a question, you mean pack all of the file and the setup.exe should be the red circle one?
Code:
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
[Setup]
AppName=AI Clock
AppVerName=AI Clock v1.0c
AppPublisher=NewPaT.NeT
AppPublisherURL=http://web.newpat.net
AppSupportURL=http://web.newpat.net
AppUpdatesURL=http://web.newpat.net
DefaultDirName={pf}\AI Clock
DefaultGroupName=AI Clock
AllowNoIcons=yes
OutputDir=C:\Documents and Settings\NewPaT\desktop\test
OutputBaseFilename=setup
SetupIconFile=C:\Documents and Settings\NewPaT\My Documents\Visual Studio 2005\Projects\AIClockC\AIClock\aiicon.ico
Compression=lzma
SolidCompression=yes
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
[Files]
Source: "C:\Documents and Settings\NewPaT\My Documents\Visual Studio 2005\Projects\AIClockC\AIClock\bin\Release\AIClock.vshost.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Documents and Settings\NewPaT\My Documents\Visual Studio 2005\Projects\AIClockC\AIClock\Readme.txt"; DestDir: "{app}"; Flags: ignoreversion
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Icons]
Name: "{group}\AI Clock"; Filename: "{app}\AIClock.vshost.exe"
Name: "{group}\{cm:UninstallProgram,AI Clock}"; Filename: "{uninstallexe}"
Name: "{commondesktop}\AI Clock"; Filename: "{app}\AIClock.vshost.exe"; Tasks: desktopicon
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\AI Clock"; Filename: "{app}\AIClock.vshost.exe"; Tasks: quicklaunchicon
[Run]
Filename: "{app}\AIClock.vshost.exe"; Description: "{cm:LaunchProgram,AI Clock}"; Flags: nowait postinstall skipifsilent
-
Re: [2005] Inno setup 5.1.13 question
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.
-
Re: [2005] Inno setup 5.1.13 question
I also see you got the some of the extra info you needed for the script, even with the obstacles (Good Work) :p
-
Re: [2005] Inno setup 5.1.13 question
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..)
-
Re: [2005] Inno setup 5.1.13 question
Quote:
Originally Posted by randem
I also see you got the some of the extra info you needed for the script, even with the obstacles (Good Work) :p
thx for that:o
You mean to want my the publish project package?
-
Re: [2005] Inno setup 5.1.13 question
Quote:
Originally Posted by kleinma
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
-
Re: [2005] Inno setup 5.1.13 question
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.
http://www.microsoft.com/downloads/d...displaylang=en
-
Re: [2005] Inno setup 5.1.13 question
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?
-
Re: [2005] Inno setup 5.1.13 question
No you would need to add AxInterop.WMPLib.dll to your setup. That is because it is a COM component that exists outside the .NET framework.
This would be considered a "support" file. A file needed for your exe to run. So yes you would also distribute that file.
You would want to distrbute AIClock.exe, AxInterop.WMPLib.dll, and Interop.WMPLib.dll.
-
Re: [2005] Inno setup 5.1.13 question
wow, I can run it in my computer, but I am not sure other computer.
Thx for all of yr help :p
-
Re: [RESOLVED] [2005] Inno setup 5.1.13 question
You should have no problem running on another computer as long as the other computer either
1) Has the .NET framework installed
2) You install .NET framework as part of your program installation
-
Re: [RESOLVED] [2005] Inno setup 5.1.13 question
Yes, I would like to see your installation package.
-
Re: [RESOLVED] [2005] Inno setup 5.1.13 question
but i think if the .net2.0 can be automatically detect and install in the my app installation, that will be perfect
-
Re: [RESOLVED] [2005] Inno setup 5.1.13 question
Quote:
Originally Posted by randem
Yes, I would like to see your installation package.
ya sure, i will translate it to eng and upload to here;)