comparison contrib/win32/mercurial.iss @ 4629:a04b5f37eda7

Fixes to not require administrator privleges and use private copies of DLLs when running the Windows installer. Initial version from Shun-ichi GOTO in BTS 449 for private copies of DLLs. Additional changes to remove local DLL flag on uninstall and set privilege level.
author Lee Cantey <lcantey@gmail.com>
date Mon, 18 Jun 2007 15:21:02 -0700
parents 1bcf38111877
children 4da2149b63a1
comparison
equal deleted inserted replaced
4628:02956be66a58 4629:a04b5f37eda7
23 InternalCompressLevel=max 23 InternalCompressLevel=max
24 SolidCompression=true 24 SolidCompression=true
25 SetupIconFile=contrib\favicon.ico 25 SetupIconFile=contrib\favicon.ico
26 AllowNoIcons=true 26 AllowNoIcons=true
27 DefaultGroupName=Mercurial 27 DefaultGroupName=Mercurial
28 PrivilegesRequired=none
28 29
29 [Files] 30 [Files]
30 Source: ..\..\msys\1.0\bin\patch.exe; DestDir: {app}
31 Source: contrib\mercurial.el; DestDir: {app}/Contrib 31 Source: contrib\mercurial.el; DestDir: {app}/Contrib
32 Source: contrib\win32\ReadMe.html; DestDir: {app}; Flags: isreadme 32 Source: contrib\win32\ReadMe.html; DestDir: {app}; Flags: isreadme
33 Source: contrib\win32\mercurial.ini; DestDir: {app}; DestName: Mercurial.ini; Flags: confirmoverwrite 33 Source: contrib\win32\mercurial.ini; DestDir: {app}; DestName: Mercurial.ini; Flags: confirmoverwrite
34 Source: contrib\win32\postinstall.txt; DestDir: {app}; DestName: ReleaseNotes.txt 34 Source: contrib\win32\postinstall.txt; DestDir: {app}; DestName: ReleaseNotes.txt
35 Source: dist\hg.exe; DestDir: {app} 35 Source: dist\hg.exe; DestDir: {app}; AfterInstall: Touch('{app}\hg.exe.local')
36 Source: dist\library.zip; DestDir: {app} 36 Source: dist\library.zip; DestDir: {app}
37 Source: dist\mfc71.dll; DestDir: {sys}; Flags: sharedfile uninsnosharedfileprompt 37 Source: dist\patch.exe; DestDir: {app}
38 Source: dist\msvcr71.dll; DestDir: {sys}; Flags: sharedfile uninsnosharedfileprompt 38 Source: dist\mfc71.dll; DestDir: {app}
39 Source: dist\msvcr71.dll; DestDir: {app}
39 Source: dist\w9xpopen.exe; DestDir: {app} 40 Source: dist\w9xpopen.exe; DestDir: {app}
40 Source: dist\add_path.exe; DestDir: {app} 41 Source: dist\add_path.exe; DestDir: {app}
41 Source: doc\*.txt; DestDir: {app}\Docs 42 Source: doc\*.txt; DestDir: {app}\Docs
42 Source: templates\*.*; DestDir: {app}\Templates; Flags: recursesubdirs createallsubdirs 43 Source: templates\*.*; DestDir: {app}\Templates; Flags: recursesubdirs createallsubdirs
43 Source: CONTRIBUTORS; DestDir: {app}; DestName: Contributors.txt 44 Source: CONTRIBUTORS; DestDir: {app}; DestName: Contributors.txt
57 [Run] 58 [Run]
58 Filename: "{app}\add_path.exe"; Parameters: "{app}"; Flags: postinstall; Description: "Add the installation path to the search path" 59 Filename: "{app}\add_path.exe"; Parameters: "{app}"; Flags: postinstall; Description: "Add the installation path to the search path"
59 60
60 [UninstallRun] 61 [UninstallRun]
61 Filename: "{app}\add_path.exe"; Parameters: "/del {app}" 62 Filename: "{app}\add_path.exe"; Parameters: "/del {app}"
63
64 [UninstallDelete]
65 Type: files; Name: "{app}\hg.exe.local"
66
67 [Code]
68 procedure Touch(fn: String);
69 begin
70 SaveStringToFile(ExpandConstant(fn), '', False);
71 end;