From: Francesco M. <fr...@us...> - 2006-12-24 20:52:26
|
Update of /cvsroot/wxlua/wxLua/distrib/innosetup In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv4347/distrib/innosetup Modified Files: wxlua.iss Log Message: committed the version of the installer used for releasing 2.8.0.0 (forgot to do that before actually doing the release) Index: wxlua.iss =================================================================== RCS file: /cvsroot/wxlua/wxLua/distrib/innosetup/wxlua.iss,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** wxlua.iss 10 Dec 2006 18:04:25 -0000 1.1 --- wxlua.iss 24 Dec 2006 20:52:19 -0000 1.2 *************** *** 7,11 **** ; 1) build\autoconf\configure.ac ; 2) WXLUA_RELEASE variable in build/bakefiles/wxluabase.bkl ! #define VERSION "2.6.2.0" --- 7,15 ---- ; 1) build\autoconf\configure.ac ; 2) WXLUA_RELEASE variable in build/bakefiles/wxluabase.bkl ! #define VERSION "2.8.0.0" ! ! ; before compiling this script with Inno Setup Compiler compile wxLua ! ; with the following options: ! ; BUILD=debug SHARED=1 WX_SHARED=1 *************** *** 58,61 **** --- 62,66 ---- Source: art\*; DestDir: {app}\art; Components: main Source: bin\*.exe; DestDir: {app}\bin; Components: main + Source: bin\*.dll; DestDir: {app}\bin; Components: main ; help component *************** *** 68,74 **** ; be careful with these dirs (as they could contain a lot of temp stuff) ! Source: apps\*; Excludes: build\msw\msvc*,build\msw\bcc*; DestDir: {app}\apps; Flags: recursesubdirs; Components: sources ! Source: modules\*; Excludes: build\msw\msvc*,build\msw\bcc*; DestDir: {app}\modules; Flags: recursesubdirs; Components: sources ! Source: build\*; Excludes: \msw\msvc*,\msw\bcc*; DestDir: {app}\build; Flags: recursesubdirs; Components: sources Source: lib\*; Excludes: *.lib*,*.dll*; DestDir: {app}\lib; Components: sources --- 73,79 ---- ; be careful with these dirs (as they could contain a lot of temp stuff) ! Source: apps\*; Excludes: build\msw\vc*,build\msw\bcc*; DestDir: {app}\apps; Flags: recursesubdirs; Components: sources ! Source: modules\*; Excludes: build\msw\vc*,build\msw\bcc*; DestDir: {app}\modules; Flags: recursesubdirs; Components: sources ! Source: build\*; Excludes: \msw\vc*,\msw\bcc*; DestDir: {app}\build; Flags: recursesubdirs; Components: sources Source: lib\*; Excludes: *.lib*,*.dll*; DestDir: {app}\lib; Components: sources *************** *** 88,96 **** Name: associateopen; Description: Associate OPEN action for .lua files with wxLua interpreter; GroupDescription: Other tasks:; Components: main Name: associateedit; Description: Associate EDIT action for .lua files with wxLuaEditor; GroupDescription: Other tasks:; Components: main [Icons] Name: {group}\wxLua; Filename: {app}\bin\wxlua.exe; WorkingDir: {app}; Components: main; Tasks: startmenu Name: {group}\wxLuaEditor; Filename: {app}\bin\wxluaedit.exe; WorkingDir: {app}; Components: main; Tasks: startmenu ! Name: {group}\wxLua docs; Filename: {app}\docs\doxygen\html\index.html; Components: help; Tasks: startmenu Name: {userdesktop}\wxLuaEditor; Filename: {app}\bin\wxluaedit.exe; WorkingDir: {app}; Components: main; Tasks: desktopicon Name: {userappdata}\Microsoft\Internet Explorer\Quick Launch\wxLua; Filename: {app}\bin\wxluaedit.exe; Tasks: quicklaunchicon --- 93,105 ---- Name: associateopen; Description: Associate OPEN action for .lua files with wxLua interpreter; GroupDescription: Other tasks:; Components: main Name: associateedit; Description: Associate EDIT action for .lua files with wxLuaEditor; GroupDescription: Other tasks:; Components: main + Name: updatepath; Description: Add lua and wxLua command-line program's folder to the PATH; GroupDescription: Other tasks:; Components: main [Icons] Name: {group}\wxLua; Filename: {app}\bin\wxlua.exe; WorkingDir: {app}; Components: main; Tasks: startmenu Name: {group}\wxLuaEditor; Filename: {app}\bin\wxluaedit.exe; WorkingDir: {app}; Components: main; Tasks: startmenu ! Name: {group}\wxLua doxygen docs; Filename: {app}\docs\doxygen\html\index.html; Components: help; Tasks: startmenu ! Name: {group}\wxLua docs; Filename: {app}\docs; Components: help; Tasks: startmenu ! Name: {group}\Uninstall; Filename: {uninstallexe}; Components: main; Tasks: startmenu ! Name: {userdesktop}\wxLuaEditor; Filename: {app}\bin\wxluaedit.exe; WorkingDir: {app}; Components: main; Tasks: desktopicon Name: {userappdata}\Microsoft\Internet Explorer\Quick Launch\wxLua; Filename: {app}\bin\wxluaedit.exe; Tasks: quicklaunchicon *************** *** 109,110 **** --- 118,165 ---- Root: HKCR; Subkey: wxLuaFile\shell\open\command; ValueType: string; ValueName: ; ValueData: """{app}\bin\wxlua.exe"" ""%1"""; Tasks: associateopen + + + + + ; UPDATE PATH stuff + ; ================= + + + [Code] + + #include "modifypath.iss" + + procedure CurStepChanged(CurStep: TSetupStep); + begin + case CurStep of + ssPostInstall: + begin + + if IsTaskSelected('updatepath') then + // if logged in as the admin we can add the path to all users + if IsAdminLoggedOn then + ModifyPath('{app}\bin', pmAddToEnd, psAllUsers) + else + ModifyPath('{app}\bin', pmAddToEnd, psCurrentUser) + + end + end + end; + + procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep); + begin + case CurUninstallStep of + usPostUninstall: + begin + if IsAdminLoggedOn then + ModifyPath('{app}\bin', pmRemove, psAllUsers) + else + ModifyPath('{app}\bin', pmRemove, psCurrentUser) + end + end + end; + + + + + |