Changeset aade98e in sasview
- Timestamp:
- Dec 23, 2011 1:29:24 PM (13 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- eb32080e
- Parents:
- e9bd127
- Location:
- sansview
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/installer_generator.py
re7281fd raade98e 24 24 25 25 OutputBaseFilename = local_config.OutputBaseFilename 26 SetupIconFile = local_config.SetupIconFile_win26 SetupIconFile = "images\\ball.ico" 27 27 LicenseFile = 'license.txt' 28 28 DisableProgramGroupPage = 'yes' … … 183 183 msg += """Name: "desktopicon";\tDescription: "{cm:CreateDesktopIcon}";\t""" 184 184 msg += """GroupDescription: "{cm:AdditionalIcons}";\tFlags: unchecked\n""" 185 msg += """Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}";\t""" 186 msg += """GroupDescription: "{cm:AdditionalIcons}";\n""" 185 187 return msg 186 188 … … 195 197 msg += """Source: "dist\*";\tDestDir: "{app}";\t""" 196 198 msg += """Flags: ignoreversion recursesubdirs createallsubdirs\n""" 197 msg += """Source: "%s\*";\tDestDir: "{app}\%s";\t""" % (str(icon_path), str("images")) 198 msg += """Flags: ignoreversion recursesubdirs createallsubdirs\n""" 199 msg += """Source: "%s\*";\tDestDir: "{app}\%s";\t""" % (str(test_path), str("test")) 200 msg += """Flags: ignoreversion recursesubdirs createallsubdirs\n""" 201 msg += """Source: "%s\*";\tDestDir: "{app}\%s";\t""" % (str(media_path), str("media")) 202 msg += """Flags: ignoreversion recursesubdirs createallsubdirs\n""" 199 msg += """Source: "dist\plugin_models\*";\tDestDir: "{userappdata}\..\.sansview\plugin_models";\t""" 200 msg += """Flags: recursesubdirs createallsubdirs\n""" 201 msg += """Source: "dist\config\custom_config.py";\tDestDir: "{userappdata}\..\.sansview\config";\t""" 202 msg += """Flags: recursesubdirs createallsubdirs\n""" 203 203 msg += """;\tNOTE: Don't use "Flags: ignoreversion" on any shared system files""" 204 204 return msg … … 211 211 msg += """Name: "{group}\%s";\t""" % str(AppName) 212 212 msg += """Filename: "{app}\%s";\t""" % str(APPLICATION) 213 msg += """WorkingDir: "{app}" \n"""213 msg += """WorkingDir: "{app}"; IconFilename: "{app}\images\\ball.ico" \n""" 214 214 msg += """Name: "{group}\{cm:UninstallProgram, %s}";\t""" % str(AppName) 215 215 msg += """ Filename: "{uninstallexe}" \n""" 216 216 msg += """Name: "{commondesktop}\%s";\t""" % str(AppVerName) 217 217 msg += """Filename: "{app}\%s";\t""" % str(APPLICATION) 218 msg += """Tasks: desktopicon; WorkingDir: "{app}" \n""" 218 msg += """Tasks: desktopicon; WorkingDir: "{app}" ; IconFilename: "{app}\images\\ball.ico" \n""" 219 msg += """Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\%s";\t""" % str(AppVerName) 220 msg += """Filename: "{app}\%s";\t""" % str(APPLICATION) 221 msg += """Tasks: quicklaunchicon; WorkingDir: "{app}"; IconFilename: "{app}\images\\ball.ico" \n""" 219 222 return msg 220 223 … … 227 230 msg += """Description: "{cm:LaunchProgram, %s}";\t""" %str(AppName) 228 231 msg += """Flags: nowait postinstall skipifsilent\n""" 232 msg += """; Install the Microsoft C++ DLL redistributable package if it is """ 233 msg += """provided and the DLLs are not present on the target system.\n""" 234 msg += """; Note that the redistributable package is included if the app was """ 235 msg += """built using Python 2.6 or 2.7, but not with 2.5.\n""" 236 msg += """; Parameter options:\n""" 237 msg += """; - for silent install use: "/q"\n""" 238 msg += """; - for silent install with progress bar use: "/qb"\n""" 239 msg += """; - for silent install with progress bar but disallow """ 240 msg += """cancellation of operation use: "/qb!"\n""" 241 msg += """; Note that we do not use the postinstall flag as this would """ 242 msg += """display a checkbox and thus require the user to decide what to do.\n""" 243 msg += """;Filename: "{app}\\vcredist_x86.exe"; Parameters: "/qb!"; """ 244 msg += """WorkingDir: "{tmp}"; StatusMsg: "Installing Microsoft Visual """ 245 msg += """C++ 2008 Redistributable Package ..."; Check: InstallVC90CRT(); """ 246 msg += """Flags: skipifdoesntexist waituntilterminated\n""" 229 247 return msg 230 248 … … 245 263 """ 246 264 msg = """\n\n[Code]\n""" 265 msg += """function InstallVC90CRT(): Boolean;\n""" 266 msg += """begin\n""" 267 msg += """ Result := not DirExists('C:\WINDOWS\WinSxS\\x86_Microsoft.VC90.""" 268 msg += """CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_d08d0375');\n""" 269 msg += """end;\n\n""" 247 270 msg += """function NeedsAddPath(): boolean;\n""" 248 271 msg += """var\n""" … … 273 296 msg += """end;\n""" 274 297 msg += """\n""" 275 276 277 278 279 return msg 280 298 return msg 299 300 def write_uninstalldelete(): 301 """ 302 Define uninstalldelete 303 """ 304 msg = """\n[UninstallDelete]\n""" 305 msg += """; Delete directories and files that are dynamically created by """ 306 msg += """the application (i.e. at runtime).\n""" 307 msg += """Type: filesandordirs; Name: "{app}\.matplotlib"\n""" 308 msg += """Type: files; Name: "{app}\*.*"\n""" 309 msg += """; The following is a workaround for the case where the """ 310 msg += """application is installed and uninstalled but the\n""" 311 msg += """;{app} directory is not deleted because it has user files. """ 312 msg += """Then the application is installed into the\n""" 313 msg += """; existing directory, user files are deleted, and the """ 314 msg += """application is un-installed again. Without the\n""" 315 msg += """; directive below, {app} will not be deleted because Inno Setup """ 316 msg += """did not create it during the previous\n""" 317 msg += """; installation.\n""" 318 msg += """Type: dirifempty; Name: "{app}"\n""" 319 msg += """\n""" 320 return msg 281 321 282 322 if __name__ == "__main__": … … 312 352 TEMPLATE += write_dirs() 313 353 TEMPLATE += write_code() 354 TEMPLATE += write_uninstalldelete() 314 355 path = '%s.iss' % str(INSTALLER_FILE) 315 356 f = open(path,'w') -
sansview/installer_new.iss
r8ab3302 raade98e 62 62 [Tasks] 63 63 Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked 64 Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; 64 Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; 65 65 66 66 … … 68 68 Source: "dist\SansView.exe"; DestDir: "{app}"; Flags: ignoreversion 69 69 Source: "dist\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs 70 Source: "dist\plugin_models\*"; DestDir: "{userappdata}\..\.sansview\plugin_models"; Flags: recursesubdirs createallsubdirs 71 Source: "dist\config\custom_config.py"; DestDir: "{userappdata}\..\.sansview\config"; Flags: recursesubdirs createallsubdirs70 Source: "dist\plugin_models\*"; DestDir: "{userappdata}\..\.sansview\plugin_models"; Flags: recursesubdirs createallsubdirs 71 Source: "dist\config\custom_config.py"; DestDir: "{userappdata}\..\.sansview\config"; Flags: recursesubdirs createallsubdirs 72 72 ; NOTE: Don't use "Flags: ignoreversion" on any shared system files 73 73 74 74 [Icons] 75 Name: "{group}\SansView"; Filename: "{app}\SansView.exe"; WorkingDir: "{app}"; IconFilename: "{app}\images\ball.ico" 75 Name: "{group}\SansView"; Filename: "{app}\SansView.exe"; WorkingDir: "{app}"; IconFilename: "{app}\images\ball.ico" 76 76 Name: "{group}\{cm:UninstallProgram, SansView}"; Filename: "{uninstallexe}" 77 Name: "{commondesktop}\SansView-2.0.1"; Filename: "{app}\SansView.exe"; Tasks: desktopicon; WorkingDir: "{app}" ; IconFilename: "{app}\images\ball.ico" 78 Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\SansView-2.0.1"; Filename: "{app}\SansView"; Tasks: quicklaunchicon; WorkingDir: "{app}"; IconFilename: "{app}\images\ball.ico"77 Name: "{commondesktop}\SansView-2.0.1"; Filename: "{app}\SansView.exe"; Tasks: desktopicon; WorkingDir: "{app}" ; IconFilename: "{app}\images\ball.ico" 78 Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\SansView-2.0.1"; Filename: "{app}\SansView.exe"; Tasks: quicklaunchicon; WorkingDir: "{app}"; IconFilename: "{app}\images\ball.ico" 79 79 80 80 … … 127 127 end; 128 128 129 129 130 [UninstallDelete] 130 131 ; Delete directories and files that are dynamically created by the application (i.e. at runtime). … … 137 138 ; installation. 138 139 Type: dirifempty; Name: "{app}" 140
Note: See TracChangeset
for help on using the changeset viewer.