PDA

Click to See Complete Forum and Search --> : [RESOLVED] Windows version options within INNO SCRIPT Setup


SARay
Mar 7th, 2006, 02:58 AM
I’m using the Inno Setup installer successfully to create my VB6 installation files. My only problem is that I create two different versions for :

Windows 98 where the Desktop is at C:\WINDOWS\All Users, and:
Windows XP where the Desktop is at C:\Documents and Settings\All Users.

Is there a way with ‘MinVersion’ or something similar to take the correct option within the Inno script?

I’m just trying to put the application file on the desktop. The Inno script I’m using for XP is

///Inno Script

Source: "C:\Program Files\Swales Developments\Test Center\Mock Exams\Mock Comm\Mock Com.exe"; DestDir: "C:\Documents and Settings\All Users\Desktop\"; Flags: ignoreversion

///End Ino Script.

bushmobile
Mar 7th, 2006, 04:50 AM
Inno Script will do that all for you, it has built in constants for special folders. In this case you need {commondesktop}:

Source: "C:\Program Files\Swales Developments\Test Center\Mock Exams\Mock Comm\Mock Com.exe"; DestDir: "{commondesktop}"; Flags: ignoreversion

If your ISS file is in the same location as the "Mock Com.exe" file then you can further reduce that line to:

Source: "Mock Com.exe"; DestDir: "{commondesktop}"; Flags: ignoreversion

Hack
Mar 7th, 2006, 05:45 AM
Moved to application deployment

SARay
Mar 7th, 2006, 05:53 AM
Thanks!!!!!