benners Posted February 4, 2006 Posted February 4, 2006 in that case [Run]Filename: {app}\AveDesk.exe; Parameters: /RegServer; WorkingDir: {app}\; StatusMsg: Registering AveDesk.exeFilename: {app}\AveDesk.exe; Parameters: /AssocFiles; WorkingDir: {app}\; StatusMsg: Registering AveDesk.exe[UninstallRun]Filename: {app}\AveDesk.exe; Parameters: /UnRegServer; WorkingDir: {app}\; StatusMsg: Registering AveDesk.exeFilename: {app}\AveDesk.exe; Parameters: /UnAssocFiles; WorkingDir: {app}\; StatusMsg: Registering AveDesk.exeThe StatusMsg only shows if it isn't silent, not important just to let the user know what is going on.
Lost Soul Posted February 5, 2006 Posted February 5, 2006 i think im not quiet doing it right, it dosnt look right can you take a look and tell me how many no nos you see lolavedesk.iss
benners Posted February 5, 2006 Posted February 5, 2006 The code that you posted looks ok. It is not the full iss file, the lines I posted were just examples of how to do the tasks you wanted.To create the iss file from scratch, firstly I create a new folder named with the name of the app, open the folder and right click, select New - Inno Setup Script, this opens a default iss template with settings I have in all my scripts and name it with the app name. As I know where the files are going, and through experience with other files I have created I set up folders as if I had extracted the inno package, so I would create a folder called {app}, this is where the main bulk of the files will go to, and a folder called {userappdata}, this contains files I will copy to the current users app data folder, these folders relate to Inno variables in the script.Opening the script I goto Setup Options - App Directory and set the default location for the {app} variable, this is normally Program Files, which is already assumed with the {pf} variable there, and the name of the folder I want to create there, in this case AveDesk, so it will say {pf}\avedesk.Next I will set the Default program group name, select the Program Group tab next to the App Directory, and enter the name of the folder that I want to install icons to. in this case AveDesk.Once this is done the iss file will contain these lines[Setup]InternalCompressLevel=ultraOutputDir=.\SolidCompression=trueRestartIfNeededByRun=falseAllowNoIcons=trueShowLanguageDialog=noLanguageDetectionMethod=localeWizardImageFile=compiler:WizModernImage-IS.bmpWizardSmallImageFile=compiler:WizModernSmallImage-IS.bmpAppName=avedeskAppVerName=avedesk v1.3DefaultDirName={pf}\avedeskDefaultGroupName=AvedeskI then copy all the files I want to be installed to C:\Program Files\AveDesk into the {app} folder and all the files that I want to goto my app data folder into {userappdata} this would include folder structure as normally I would have installed the app first and setup as I liked, so any folders\files and settings would have been created, as I dont know exactly where your bin and ah weather are going I can't describe the addition of those files so I'll pretend I'm installing the bats and settings_overrides.ini to seperate folders. I would add these folder to the {userappdata}, note this will now differ from my original example.Next I will create the icons, including an uninstall one, import any reg files I have exported that contain registration info or settings\preferences, occasionally info under the Regsitry section requires altering.If I need to register dlls but have used the wildcard I will add these to the Install Run section and the unregistering to the Uninstall Run section, this time were are using the info from the register and unregister.bat.If everything has gone ok and I haven't made any mistakes or typos it should compile ok, below is a file that did providing the correct structure is in place.avedesk.iss
Lost Soul Posted February 5, 2006 Posted February 5, 2006 so judging from this scection here in your iss file[Files]Source: {app}\*.*; DestDir: {app}; Flags: recursesubdirs ignoreversion createallsubdirsSource: {userappdata}\register.bat\register.bat; DestDir: {userappdata}\register.batSource: {userappdata}\settings_overrides.ini\settings_overrides.ini; DestDir: {userappdata}\settings_overrides.iniSource: {userappdata}\unregister.bat\unregister.bat; DestDir: {userappdata}\unregister.batdoes that mean its not really important to name off or list every single little file thats going to be carried over ?sorry if im being a pain on this benners im just trying to get my head around it all, its complex but yet simple in a way ,, but its almost looking to simple to be true,,
benners Posted February 5, 2006 Posted February 5, 2006 Nope adding files is that simple, using wlidcards, the recursesubdirs and createallsubdirs you don't need to list all the file or folders, which in the case of AveDesk is a boon, if you add more files to the same directories you don't have to add those either.The only problem (sometimes) is as I have said before, you cannot use different flags on wildcards as the flags apply to all the files. The more iss files you create the better they will be, it was a while before I realised the recuressubdirs flag, I manually added the files, thats my rookie mistake Don't worry about being a pain, help is what these forums are about.
Lost Soul Posted February 6, 2006 Posted February 6, 2006 (edited) i think i found a small problem in your iss you have these particular linesSource: {userappdata}\register.bat\register.bat; DestDir: {userappdata}\register.batSource: {userappdata}\settings_overrides.ini\settings_overrides.ini; DestDir: {userappdata}\settings_overrides.inishould the register.bat & unregister.bat files be in the {app} folder instead of {userappdata} im saying this because mine are in my program files directoryand also my settings_overrides.ini is in program files also,, why are yours in application data ? Edited February 6, 2006 by Lost Soul
benners Posted February 6, 2006 Posted February 6, 2006 it is not the full iss file, the lines I posted were just examples of how to do the tasks you wanted.The examples I posted were just that examples, I don't use the program and as such didn't have any settings to copy over. I picked the register, unregister and settings_overrides files at random, as you did not describe the file names that you wished to copy over, I thought I would give you an example of files that you recognized rather than extractions from my own iss files.You are correct in your conclusion that the files belong in the {app} folder and all the files that are currently residing in your appdata folder go into the {userappdata} folder.If you can describe in more detail or send the files to me I will make one that works correctly, when I mean correctly I mean one that works as well not just copies the files correctly. . Do you use Messenger?
Lost Soul Posted February 6, 2006 Posted February 6, 2006 yes pm me your addy and ill add you right now
MgmTest Posted June 21, 2013 Posted June 21, 2013 HiI made the inno Setup program with the program.Not to allow the finished unpacking.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now