|
-
Oct 11th, 2007, 12:45 PM
#1
Thread Starter
Frenzied Member
[RESOLVED] Need some help with my InnoSetup script
Hi, I have a few problems with my InnoSetup script and hope somebody can help me with this.
1) The Desktop Icon and QuickLaunch Icon are not created when the checkboxes are ticked.
2) I also need to know if this is the correct script for installing the application on Vista as well (XP and Vista). I'm not using Vista myself, so there's no easy way for me to check it.
3) The application uses msxml4.dll, but I've read on the Microsoft website that msxml4r.dll needs to be included as well. Is that true?
This is my script:
Code:
; ********** Version 7.2 Build 4 Trial
; Randem Systems, Inc.
; Copyright 2003-2007
; Website: http://www.***********
; Support: http://www.***********/cgi-bin/discus/discus.cgi
; OS: Windows XP 5.1 build 2600 (Service Pack 2)
; Date: oktober 11, 2007
; VB Runtime Files Folder: C:\Program Files\Randem Systems\**********\********** 7\VB 6 Redist Files\
; Visual Basic Project File (.vbp): C:\Program Files\Microsoft Visual Studio\VB98\Basic\Basic.vbp
; Inno Setup Script Output File (.iss): C:\Program Files\Microsoft Visual Studio\VB98\Basic\Setup Beta.iss
; Script Template Files (.tpl): C:\Program Files\Randem Systems\**********\********** 7\Templates\Beta.tpl
; : C:\Program Files\Randem Systems\**********\********** 7\Templates\VBRuntime.tpl
; : C:\Program Files\Randem Systems\**********\********** 7\Templates\Vista.tpl
; ------------------------
; References
; ------------------------
; Visual Basic runtime objects and procedures - (MSVBVM60.DLL)
; OLE Automation - (STDOLE2.TLB)
; Microsoft XML, v4.0 - (msxml4.dll)
; Microsoft Shell Controls And Automation - (SHELL32.dll)
; --------------------------
; Components
; --------------------------
; Microsoft Windows Common Controls 6.0 (SP6) - (MSCOMCTL.OCX)
; Microsoft Rich Textbox Control 6.0 (SP6) - (RICHTX32.OCX)
[Setup]
;UsePreviousAppDir=no
AppId=********** Beta
;-----------------------------------------------------------------------------------------------------
; Taken from VBP Project File Parameters AppName, AppName AppVersion and Company
;-----------------------------------------------------------------------------------------------------
AppName=Basic
AppVerName=Basic 0.0.70
AppPublisher=MyName
;-----------------------------------------------------------------------------------------------------
AppVersion=0.0.70
VersionInfoVersion=0.0.70
AllowNoIcons=yes
LicenseFile=C:\Program Files\Microsoft Visual Studio\VB98\Basic\Setup\other\License.rtf
DefaultGroupName=Basic
DefaultDirName={code:GetAppFolder}\Basic
AppCopyright=Copyright © 2007 by MyName
PrivilegesRequired=Admin
SetupIconFile=C:\Program Files\Microsoft Visual Studio\VB98\Basic\Setup\other\icon.ico
MinVersion=0,5.01
Compression=lzma
OutputDir=Output
OutputBaseFilename=Basic0070Beta
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
Name: "dutch"; MessagesFile: "compiler:Languages\Dutch.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
[Files]
Source: c:\program files\randem systems\**********\********** 7\vb 6 redist files\msvbvm60.dll; DestDir: {sys}; Flags: uninsneveruninstall regserver restartreplace sharedfile; OnlyBelowVersion: 0,6
Source: c:\program files\randem systems\**********\********** 7\vb 6 redist files\oleaut32.dll; DestDir: {sys}; Flags: uninsneveruninstall regserver restartreplace sharedfile; OnlyBelowVersion: 0,6
Source: c:\program files\randem systems\**********\********** 7\vb 6 redist files\olepro32.dll; DestDir: {sys}; Flags: uninsneveruninstall regserver restartreplace sharedfile; OnlyBelowVersion: 0,6
Source: c:\program files\randem systems\**********\********** 7\vb 6 redist files\asycfilt.dll; DestDir: {sys}; Flags: uninsneveruninstall sharedfile; OnlyBelowVersion: 0,6
Source: c:\program files\randem systems\**********\********** 7\vb 6 redist files\stdole2.tlb; DestDir: {sys}; Flags: uninsneveruninstall sharedfile regtypelib; OnlyBelowVersion: 0,6
Source: c:\program files\randem systems\**********\********** 7\vb 6 redist files\comcat.dll; DestDir: {sys}; Flags: uninsneveruninstall regserver restartreplace sharedfile; OnlyBelowVersion: 0,6
Source: c:\program files\randem systems\**********\********** 7\vb 6 redist files\vb5db.dll; DestDir: {sys}; Flags: uninsneveruninstall sharedfile; OnlyBelowVersion: 0,6
Source: c:\program files\microsoft visual studio\vb98\basic\setup\vbfiles\msxml4.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\program files\microsoft visual studio\vb98\basic\setup\vbfiles\mscomctl.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\program files\microsoft visual studio\vb98\basic\setup\vbfiles\richtx32.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\program files\microsoft visual studio\vb98\basic\basic.exe; DestDir: {app}; Flags: ignoreversion;
[Icons]
Name: {group}\Basic; Filename: {app}\Basic.exe; WorkingDir: {app}
Name: {group}\{cm:UninstallProgram, Basic}; Filename: {uninstallexe}
[Run]
Filename: {app}\Basic.exe; Description: {cm:LaunchProgram, Basic}; Flags: nowait postinstall skipifsilent; WorkingDir: {app}
[UninstallDelete]
Type: files; Name: {app}\Settings.ini
[Registry]
[Code ]
function GetAppFolder(Param: String): String;
begin
if InstallOnThisVersion('0,6', '0,0') = irInstall then
Result := 'C:\Users\Public\' + ExpandConstant('{username}')
else
Result := ExpandConstant('{pf}');
end;
Last edited by Chris001; Oct 14th, 2007 at 12:24 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|