User Tools

Site Tools


userspace:advanced_renamer

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

userspace:advanced_renamer [2014/06/10 21:05]
mensch90 [uninstall.ins]
userspace:advanced_renamer [2021/08/23 08:37]
Line 1: Line 1:
-====== Advanced Renamer ====== 
-Advanced Renamer is a simple tool to edit a bunch of files in case of needed batch-renaming. 
-In this script I also disable the autoupdater and the prefered language. 
  
-==== setup.ins ==== 
-<code winst> 
-; Installation von AdvancedRenamer 
-; info@karsten-nobis.de 
-; ---------------------------------------------------------------- 
- 
-[Actions] 
-requiredWinstVersion >= "4.11.2.6" 
- 
-; Variablendefinition 
-; ---------------------------------------------------------------- 
- 
-; statisch, nicht verändern 
-DefVar $errorcode$ 
-DefVar $logdir$ 
-DefVar $productid$   
-DefVar $minimumspace$ 
- 
-; variabel, frei veränderbar 
-DefVar $local_installer_folder$ 
-DefVar $installer_file$ 
-DefVar $installer_parameter$ 
-DefVar $local_uninstaller_file$ 
-DefVar $local_uninstaller_parameter$ 
- 
-; Variablenzuweisung 
-; ---------------------------------------------------------------- 
- 
-; statisch, nur den Gegebenheiten anpassen 
-Set $logdir$ = "%SystemDrive%\tmp" 
-Set $productid$        = "advancedrenamer" 
-Set $minimumspace$    = "20 MB" 
- 
-; teilstatisch, nur den Gegebenheiten anpassen 
-; Zielpfad auf dem Client 
-Set $local_installer_folder$ = "%ProgramFiles32Dir%\Advanced Renamer\" 
-  
-; Installationsdatei im Opsi-Paketordner "resources" 
-Set $installer_file$    = "advancedrenamer.exe"  
-  
-; Aufrufparameter für die Installationsdatei  
-Set $installer_parameter$    = "/VERYSILENT /LOADINF=install.cfg" 
- 
-; Deinstallationsdatei auf dem Client im $local_installer_folder$  
-Set $local_uninstaller_file$ = "unins000.exe"  
-  
-; Aufrufparameter für die Deinstallationsdatei  
-Set $local_uninstaller_parameter$ = "/SILENT"  
- 
-; Skriptbeginn 
-; ---------------------------------------------------------------- 
- 
-; Prüfung auf freien Speicher 
-; ---------------------------------------------------------------- 
- 
-if not(Hasminimumspace ("%SystemDrive%", $minimumspace$)) 
- LogError "Nicht genuegend freier Speicher auf %SystemDrive%, " + $minimumspace$ + " auf dem Speicher %SystemDrive% werden für " + $productid$ + " benoetigt!" 
- isFatalError "Kein Speicher" 
- ; Ablauf stoppen und Installationsstatus auf fehlerhaft setzen. 
-endif 
-  
-; Eigene Prozedurenaufrufe und Ablaufplanung 
-; ---------------------------------------------------------------- 
- 
-; variabel, frei veränderbar 
- Sub_preactions 
- Sub_uninstaller 
- Sub_installer 
- Sub_postactions 
- 
-; Skriptende 
-  
-; Subprozeduren 
-; ----------------------------------------------------------------  
- 
-; Installationsopener - statisch, nicht verändern 
-[Sub_preactions] 
- ShowBitmap "%ScriptPath%\resources\logo.png" $productid$ 
- Message "Installation von " + $productid$ + " wird ueberprueft..." 
- 
-; variabel, frei veränderbar 
-[Sub_uninstaller] 
- if FileExists($local_installer_folder$) 
- Message "Deinstallation von " + $productid$ + " wird durchgefuehrt..." 
- WinBatch_uninstall 
- Sub_errorhandler 
- endif 
-  
-[Sub_installer] 
- Message "Installation von " + $productid$ + " wird durchgefuehrt..." 
- WinBatch_install 
- Sub_errorhandler 
- 
-[Sub_postactions]  
- Message "Postaction wird durchgefuehrt..." 
- Message "Benutzereinstellungen werden gesetzt..." 
- Files_copy_usersettings /AllNtUserProfiles 
- 
-; Fehlerbehandlungsroutine - statisch, nicht verändern 
-[Sub_errorhandler] 
- Set $errorcode$ = getLastExitCode 
- if ($errorcode$ = "0") 
- Message "Aktion war erfolgreich!" 
- else 
- Message "Aktion schlug mit Errorcode " + $errorcode$ + " fehl!" 
- Sub "%ScriptPath%\..\mail-send\error_notification.ins" 
- isFatalError 
- endif 
- 
-; Sektionen - variabel, frei veränderbar 
-; ---------------------------------------------------------------- 
- 
-[WinBatch_install] 
- "%ScriptPath%\resources\$installer_file$" $installer_parameter$ 
- 
-[WinBatch_uninstall] 
- "$local_installer_folder$$local_uninstaller_file$" $local_uninstaller_parameter$ 
- 
-[Files_copy_usersettings] 
- copy -s "%ScriptPath%\resources\local_user_appdata_roaming_hulubulu_advancedrenamer3_data\" "%UserProfileDir%\AppData\Roaming\Hulubulu\Advanced Renamer 3\Data\" 
-</code> 
- 
-==== uninstall.ins ==== 
-<code winst> 
-; Deinstallation von AdvancedRenamer 
-; info@karsten-nobis.de 
-; ---------------------------------------------------------------- 
- 
-[Actions] 
-requiredWinstVersion >= "4.11.2.6" 
- 
-; Variablendefinition 
-; ---------------------------------------------------------------- 
- 
-; statisch, nicht verändern 
-DefVar $errorcode$ 
-DefVar $logdir$ 
-DefVar $productid$   
- 
-; variabel, frei veränderbar 
-DefVar $local_installer_folder$ 
-DefVar $local_uninstaller_file$ 
-DefVar $local_uninstaller_parameter$ 
- 
-; Variablenzuweisung 
-; ---------------------------------------------------------------- 
- 
-; statisch, nur den Gegebenheiten anpassen 
-Set $logdir$ = "%SystemDrive%\tmp" 
-Set $productid$        = "advancedrenamer" 
- 
-; teilstatisch, nur den Gegebenheiten anpassen 
-; Zielpfad auf dem Client 
-Set $local_installer_folder$ = "%ProgramFiles32Dir%\Advanced Renamer\" 
- 
-; Deinstallationsdatei auf dem Client im $local_installer_folder$  
-Set $local_uninstaller_file$ = "unins000.exe"  
-  
-; Aufrufparameter für die Deinstallationsdatei  
-Set $local_uninstaller_parameter$ = "/SILENT" 
- 
-; Skriptbeginn 
-; ---------------------------------------------------------------- 
-  
-; Eigene Prozedurenaufrufe und Ablaufplanung 
-; ---------------------------------------------------------------- 
- 
-; variabel, frei veränderbar 
- Sub_preactions 
- Sub_uninstaller 
- Sub_postactions 
- 
-; Skriptende 
-  
-; Subprozeduren 
-; ----------------------------------------------------------------  
- 
-; Installationsopener - statisch, nicht verändern 
-[Sub_preactions] 
- ShowBitmap "%ScriptPath%\resources\logo.png" $productid$ 
- Message "Deinstallation von " + $productid$ + " wird ueberprueft..." 
- 
-; variabel, frei veränderbar 
-[Sub_uninstaller] 
- Message "Deinstallation von " + $productid$ + " wird durchgefuehrt..." 
- WinBatch_uninstall 
- Sub_errorhandler 
- 
-[Sub_postactions] 
- Message "Postaction wird durchgefuehrt..." 
- 
-; Fehlerbehandlungsroutine - statisch, nicht verändern 
-[Sub_errorhandler] 
- Set $errorcode$ = getLastExitCode 
- if ($errorcode$ = "0") 
- Message "Aktion war erfolgreich!" 
- else 
- Message "Aktion schlug mit Errorcode " + $errorcode$ + " fehl!" 
- Sub "%ScriptPath%\..\mail-send\error_notification.ins" 
- isFatalError 
- endif 
- 
-; Sektionen - variabel, frei veränderbar 
-; ---------------------------------------------------------------- 
- 
-[WinBatch_uninstall] 
- "$local_installer_folder$$local_uninstaller_file$" $local_uninstaller_parameter$ 
-</code> 
- 
-==== resources\install.cfg ==== 
-<code winst> 
-[Setup] 
-Lang=de 
-Dir=C:\Program Files\Advanced Renamer 
-Group=Advanced Renamer 
-NoIcons=0 
-Tasks=association 
-</code> 
- 
-==== resources\local_user_appdata_roaming_hulubulu_advancedrenamer3_data\settings.ini ==== 
-<code winst> 
-[Advanced Renamer] 
-language=1031 
-ShowHelpGettingStarted=0 
-CheckForUpdatesAtStart=0 
-</code> 
userspace/advanced_renamer.txt · Last modified: 2021/08/23 08:37 (external edit)