diff --git a/packages/win32_inno/pd-inno.iss.in b/packages/win32_inno/pd-inno.iss.in index 6b6733c04e14c2bea8ae2eee5f2b636b31567eab..4c84685206981b860ee5af495780c2b3f87dda58 100755 --- a/packages/win32_inno/pd-inno.iss.in +++ b/packages/win32_inno/pd-inno.iss.in @@ -1,82 +1,82 @@ -; -; -; This file is a template with packages/win32_inno/Makefile turns -; into a proper .iss ISTool/Inno Setup file. <hans@at.or.at> -; -; - -[Setup] -AppName=Purr Data -AppVerName=Purr Data PD_VERSION -AppPublisher=purrdata.net -AppPublisherURL=http://purrdata.net -AppSupportURL=http://puredata.org/community/lists/ -AppUpdatesURL=http://puredata.org/downloads/ -DefaultDirName={pf}\Purr Data -DefaultGroupName=Purr Data -LicenseFile=..\gpl-3.0.txt -DisableWelcomePage=no - -Compression=lzma/ultra -ChangesAssociations=true -OutputBaseFilename=Purr Data PD_VERSION -AppCopyright=GNU GPL -WizardImageFile=big_cat.bmp -WizardImageStretch=no -WizardSmallImageFile=small_cat.bmp -[Tasks] -; NOTE: The following entry contains English phrases ("Create a desktop icon" and "Additional icons"). You are free to translate them into another language if required. -Name: desktopicon; Description: Create a &desktop icon; GroupDescription: Additional icons:; Flags: unchecked -; NOTE: The following entry contains English phrases ("Create a Quick Launch icon" and "Additional icons"). You are free to translate them into another language if required. -Name: quicklaunchicon; Description: Create a &Quick Launch icon; GroupDescription: Additional icons:; Flags: unchecked -Name: fileassociations; Description: Reset File Associations -Name: libs; Description: Reset Libraries and Paths - -[INI] -Filename: {app}\pd.url; Section: InternetShortcut; Key: URL; String: http://purrdata.net -Filename: {app}\asio4all.url; Section: InternetShortcut; Key: URL; String: http://asio4all.com -Filename: {app}\puredata.url; Section: InternetShortcut; Key: URL; String: http://en.flossmanuals.net/puredata -Filename: {app}\techniques.url; Section: InternetShortcut; Key: URL; String: http://crca.ucsd.edu/~msp/techniques.htm -Filename: {app}\pd-tutorial.url; Section: InternetShortcut; Key: URL; String: http://www.pd-tutorial.com/ - -[Icons] -Name: {group}\Purr-Data; Filename: {app}\bin\pd.exe; IconFilename: {app}\lib\pd.ico; IconIndex: 0; WorkingDir: {app} -Name: {group}\puredata.org; Filename: {app}\pd.url -Name: {group}\ASIO4ALL; Filename: {app}\asio4all.url -Name: {group}\Uninstall Purr-Data; Filename: {uninstallexe} -Name: {userdesktop}\Purr-Data; Filename: {app}\bin\pd.exe; Tasks: desktopicon; IconFilename: {app}\lib\pd.ico; IconIndex: 0; WorkingDir: {app} -Name: {userappdata}\Microsoft\Internet Explorer\Quick Launch\Purr-Data; Filename: {app}\bin\pd.exe; Tasks: quicklaunchicon; WorkingDir: {app}; IconFilename: {app}\lib\pd.ico; IconIndex: 0 -Name: {group}\Documentation\Pd Manual; Filename: {app}\doc\1.manual\index.htm -Name: {group}\Documentation\Pd Drums Tutorial; Filename: {app}\doc\tutorials\footils\pddrums\pddrums.html -Name: {group}\Documentation\Pure Data FLOSSmanual; Filename: {app}\puredata.url -Name: {group}\Documentation\Programming Electronic Music in Pd; Filename: {app}\pd-tutorial.url -Name: {group}\Documentation\Theory and Techniques of Electronic Music; Filename: {app}\techniques.url - - -[Run] -; NOTE: The following entry contains an English phrase ("Launch"). You are free to translate it into another language if required. -;Filename: {app}\bin\pd.exe; Description: Launch Purr-Data; Flags: nowait postinstall skipifsilent +; +; +; This file is a template with packages/win32_inno/Makefile turns +; into a proper .iss ISTool/Inno Setup file. <hans@at.or.at> +; +; + +[Setup] +AppName=Purr Data +AppVerName=Purr Data PD_VERSION +AppPublisher=purrdata.net +AppPublisherURL=http://purrdata.net +AppSupportURL=http://puredata.org/community/lists/ +AppUpdatesURL=http://puredata.org/downloads/ +DefaultDirName={pf}\Purr Data +DefaultGroupName=Purr Data +LicenseFile=..\gpl-3.0.txt +DisableWelcomePage=no + +Compression=lzma/ultra +ChangesAssociations=true +OutputBaseFilename=Purr Data PD_VERSION +AppCopyright=GNU GPL +WizardImageFile=big_cat.bmp +WizardImageStretch=no +WizardSmallImageFile=small_cat.bmp +[Tasks] +; NOTE: The following entry contains English phrases ("Create a desktop icon" and "Additional icons"). You are free to translate them into another language if required. +Name: desktopicon; Description: Create a &desktop icon; GroupDescription: Additional icons:; Flags: unchecked +; NOTE: The following entry contains English phrases ("Create a Quick Launch icon" and "Additional icons"). You are free to translate them into another language if required. +Name: quicklaunchicon; Description: Create a &Quick Launch icon; GroupDescription: Additional icons:; Flags: unchecked +Name: fileassociations; Description: Reset File Associations +Name: libs; Description: Reset Libraries and Paths + +[INI] +Filename: {app}\pd.url; Section: InternetShortcut; Key: URL; String: http://purrdata.net +Filename: {app}\asio4all.url; Section: InternetShortcut; Key: URL; String: http://asio4all.com +Filename: {app}\puredata.url; Section: InternetShortcut; Key: URL; String: http://en.flossmanuals.net/puredata +Filename: {app}\techniques.url; Section: InternetShortcut; Key: URL; String: http://crca.ucsd.edu/~msp/techniques.htm +Filename: {app}\pd-tutorial.url; Section: InternetShortcut; Key: URL; String: http://www.pd-tutorial.com/ + +[Icons] +Name: {group}\Purr-Data; Filename: {app}\bin\pd.exe; IconFilename: {app}\lib\pd.ico; IconIndex: 0; WorkingDir: {app} +Name: {group}\puredata.org; Filename: {app}\pd.url +Name: {group}\ASIO4ALL; Filename: {app}\asio4all.url +Name: {group}\Uninstall Purr-Data; Filename: {uninstallexe} +Name: {userdesktop}\Purr-Data; Filename: {app}\bin\pd.exe; Tasks: desktopicon; IconFilename: {app}\lib\pd.ico; IconIndex: 0; WorkingDir: {app} +Name: {userappdata}\Microsoft\Internet Explorer\Quick Launch\Purr-Data; Filename: {app}\bin\pd.exe; Tasks: quicklaunchicon; WorkingDir: {app}; IconFilename: {app}\lib\pd.ico; IconIndex: 0; UninstallDisplayIcon: {app}\lib\pdPatch_catGraphics.ico; +Name: {group}\Documentation\Pd Manual; Filename: {app}\doc\1.manual\index.htm +Name: {group}\Documentation\Pd Drums Tutorial; Filename: {app}\doc\tutorials\footils\pddrums\pddrums.html +Name: {group}\Documentation\Pure Data FLOSSmanual; Filename: {app}\puredata.url +Name: {group}\Documentation\Programming Electronic Music in Pd; Filename: {app}\pd-tutorial.url +Name: {group}\Documentation\Theory and Techniques of Electronic Music; Filename: {app}\techniques.url + + +[Run] +; NOTE: The following entry contains an English phrase ("Launch"). You are free to translate it into another language if required. +;Filename: {app}\bin\pd.exe; Description: Launch Purr-Data; Flags: nowait postinstall skipifsilent ; failed attempt at getting this url to open after the install is complete -;Filename: rundll32 url.dll,FileProtocolHandler http://asio4all.com; Description: open ASIO4ALL website; Flags: nowait postinstall skipifsilent - -[UninstallDelete] -Type: files; Name: {app}\pd.url -Type: files; Name: {app}\asio4all.url -Type: files; Name: {app}\puredata.url -Type: files; Name: {app}\pd-tutorial.url -Type: files; Name: {app}\techniques.url - -[Registry] -Root: HKCR; SubKey: Purr.Data; ValueType: dword; ValueName: EditFlags; ValueData: $00000000; Flags: noerror uninsdeletekey; Tasks: fileassociations; Permissions: users-modify -Root: HKCR; SubKey: Purr.Data; ValueType: dword; ValueName: BrowserFlags; ValueData: $00000008; Flags: uninsdeletekey noerror; Tasks: fileassociations -Root: HKCR; SubKey: Purr.Data; ValueType: string; ValueData: Purr Data; Flags: uninsdeletekey noerror; Tasks: fileassociations -Root: HKCR; SubKey: Purr.Data\DefaultIcon; ValueType: string; ValueData: {app}\lib\pdpatch.ico,0; Flags: createvalueifdoesntexist noerror; Tasks: fileassociations -Root: HKCR; SubKey: Purr.Data\shell; ValueType: string; ValueData: open; Flags: noerror uninsdeletekey; Tasks: fileassociations -Root: HKCR; SubKey: Purr.Data\shell\open\command; ValueType: string; ValueData: """{app}\bin\pd.exe"" -listdev ""%1"""; Flags: uninsdeletekey noerror; Tasks: fileassociations -Root: HKCR; SubKey: .pd; ValueType: string; ValueData: Purr.Data; Flags: noerror uninsdeletekey; Tasks: fileassociations -Root: HKCR; SubKey: .pd; ValueType: string; ValueName: Content Type; ValueData: text/plain; Flags: noerror uninsdeletekey; Tasks: fileassociations -; -; STARTHERE: add pd-inno_registry after this comment: +;Filename: rundll32 url.dll,FileProtocolHandler http://asio4all.com; Description: open ASIO4ALL website; Flags: nowait postinstall skipifsilent + +[UninstallDelete] +Type: files; Name: {app}\pd.url +Type: files; Name: {app}\asio4all.url +Type: files; Name: {app}\puredata.url +Type: files; Name: {app}\pd-tutorial.url +Type: files; Name: {app}\techniques.url + +[Registry] +Root: HKCR; SubKey: Purr.Data; ValueType: dword; ValueName: EditFlags; ValueData: $00000000; Flags: noerror uninsdeletekey; Tasks: fileassociations; Permissions: users-modify +Root: HKCR; SubKey: Purr.Data; ValueType: dword; ValueName: BrowserFlags; ValueData: $00000008; Flags: uninsdeletekey noerror; Tasks: fileassociations +Root: HKCR; SubKey: Purr.Data; ValueType: string; ValueData: Purr Data; Flags: uninsdeletekey noerror; Tasks: fileassociations +Root: HKCR; SubKey: Purr.Data\DefaultIcon; ValueType: string; ValueData: {app}\lib\pdpatch.ico,0; Flags: createvalueifdoesntexist noerror; Tasks: fileassociations +Root: HKCR; SubKey: Purr.Data\shell; ValueType: string; ValueData: open; Flags: noerror uninsdeletekey; Tasks: fileassociations +Root: HKCR; SubKey: Purr.Data\shell\open\command; ValueType: string; ValueData: """{app}\bin\pd.exe"" -listdev ""%1"""; Flags: uninsdeletekey noerror; Tasks: fileassociations +Root: HKCR; SubKey: .pd; ValueType: string; ValueData: Purr.Data; Flags: noerror uninsdeletekey; Tasks: fileassociations +Root: HKCR; SubKey: .pd; ValueType: string; ValueName: Content Type; ValueData: text/plain; Flags: noerror uninsdeletekey; Tasks: fileassociations +; +; STARTHERE: add pd-inno_registry after this comment: Root: HKLM; SubKey: SOFTWARE\Purr-Data; ValueType: string; ValueName: flags; ValueData: ; Tasks: libs; Flags: uninsdeletekey Root: HKCU; SubKey: SOFTWARE\Purr-Data; ValueType: string; ValueName: flags; ValueData: ; Tasks: libs; Flags: uninsdeletekey @@ -681,107 +681,107 @@ Root: HKCU; SubKey: SOFTWARE\Purr-Data; ValueType: none; ValueName: path99; Task Root: HKLM; SubKey: SOFTWARE\Purr-Data; ValueType: none; ValueName: path100; Tasks: libs; Flags: uninsdeletekey Root: HKCU; SubKey: SOFTWARE\Purr-Data; ValueType: none; ValueName: path100; Tasks: libs; Flags: uninsdeletekey -; ENDHERE: add pd-inno_registry before this comment: - -[_ISTool] -Use7zip=true -OutputExeFilename=Output\PACKAGE_NAME.exe - -[Files] -; commented out lines have no files, so they give an error -; NOTE: Don't use "Flags: ignoreversion" on any shared system files -; -; -;----------------------------------------------------------------------------- -; packages\win32_inno -Source: pdpatch.ico; DestDir: {app}\lib -Source: pd.ico; DestDir: {app}\lib -; -; -;----------------------------------------------------------------------------- -; put pdsend and pdreceive in the System dir so that they are in the path -; -Source: build\bin\pdsend.exe; DestDir: {sys}; Flags: confirmoverwrite promptifolder -Source: build\bin\pdreceive.exe; DestDir: {sys}; Flags: confirmoverwrite promptifolder -; add Cyclone's cyclist.exe if it is present -#ifexist "build\bin\cyclist.exe" -Source: build\bin\cyclist.exe; DestDir: {sys}; Flags: confirmoverwrite promptifolder -#endif -; -; -;----------------------------------------------------------------------------- -; MinGW Files -; these are some helpful utilities from MinGW -; -; start.exe - like Mac OS X's 'open' command, allows you to open files and -; URLs from the command line -;Source: C:\msys\1.0\bin\start.exe; DestDir: {sys}; Flags: confirmoverwrite -; -; -;----------------------------------------------------------------------------- -; DejaVu Sans Mono Font Files -; the files needed for the Pd-0.39.2-extended default font -;Source: C:\WINDOWS\Fonts\DejaVuSans.ttf; DestDir: {fonts}; Flags: onlyifdoesntexist uninsneveruninstall; FontInstall: DejaVu Sans -;Source: C:\WINDOWS\Fonts\DejaVuSans-Bold.ttf; DestDir: {fonts}; Flags: onlyifdoesntexist uninsneveruninstall; FontInstall: DejaVu Sans Bold -;Source: C:\WINDOWS\Fonts\DejaVuSans-BoldOblique.ttf; DestDir: {fonts}; Flags: onlyifdoesntexist uninsneveruninstall; FontInstall: DejaVu Sans Bold Oblique -;Source: C:\WINDOWS\Fonts\DejaVuSansMono.ttf; DestDir: {fonts}; Flags: onlyifdoesntexist uninsneveruninstall; FontInstall: DejaVu Sans Mono -;Source: C:\WINDOWS\Fonts\DejaVuSansMono-Bold.ttf; DestDir: {fonts}; Flags: onlyifdoesntexist uninsneveruninstall; FontInstall: DejaVu Sans Mono Bold -;Source: C:\WINDOWS\Fonts\DejaVuSansMono-BoldOblique.ttf; DestDir: {fonts}; Flags: onlyifdoesntexist uninsneveruninstall; FontInstall: DejaVu Sans Mono Bold Oblique -;Source: C:\WINDOWS\Fonts\DejaVuSansMono-Oblique.ttf; DestDir: {fonts}; Flags: onlyifdoesntexist uninsneveruninstall; FontInstall: DejaVu Sans Mono Oblique -;Source: C:\WINDOWS\Fonts\DejaVuSans-Oblique.ttf; DestDir: {fonts}; Flags: onlyifdoesntexist uninsneveruninstall; FontInstall: DejaVu Sans Oblique -;Source: C:\WINDOWS\Fonts\DejaVuSerif.ttf; DestDir: {fonts}; Flags: onlyifdoesntexist uninsneveruninstall; FontInstall: DejaVu Serif -;Source: C:\WINDOWS\Fonts\DejaVuSerif-Bold.ttf; DestDir: {fonts}; Flags: onlyifdoesntexist uninsneveruninstall; FontInstall: DejaVu Serif Bold +; ENDHERE: add pd-inno_registry before this comment: + +[_ISTool] +Use7zip=true +OutputExeFilename=Output\PACKAGE_NAME.exe + +[Files] +; commented out lines have no files, so they give an error +; NOTE: Don't use "Flags: ignoreversion" on any shared system files +; +; +;----------------------------------------------------------------------------- +; packages\win32_inno +Source: pdpatch.ico; DestDir: {app}\lib +Source: pd.ico; DestDir: {app}\lib +; +; +;----------------------------------------------------------------------------- +; put pdsend and pdreceive in the System dir so that they are in the path +; +Source: build\bin\pdsend.exe; DestDir: {sys}; Flags: confirmoverwrite promptifolder +Source: build\bin\pdreceive.exe; DestDir: {sys}; Flags: confirmoverwrite promptifolder +; add Cyclone's cyclist.exe if it is present +#ifexist "build\bin\cyclist.exe" +Source: build\bin\cyclist.exe; DestDir: {sys}; Flags: confirmoverwrite promptifolder +#endif +; +; +;----------------------------------------------------------------------------- +; MinGW Files +; these are some helpful utilities from MinGW +; +; start.exe - like Mac OS X's 'open' command, allows you to open files and +; URLs from the command line +;Source: C:\msys\1.0\bin\start.exe; DestDir: {sys}; Flags: confirmoverwrite +; +; +;----------------------------------------------------------------------------- +; DejaVu Sans Mono Font Files +; the files needed for the Pd-0.39.2-extended default font +;Source: C:\WINDOWS\Fonts\DejaVuSans.ttf; DestDir: {fonts}; Flags: onlyifdoesntexist uninsneveruninstall; FontInstall: DejaVu Sans +;Source: C:\WINDOWS\Fonts\DejaVuSans-Bold.ttf; DestDir: {fonts}; Flags: onlyifdoesntexist uninsneveruninstall; FontInstall: DejaVu Sans Bold +;Source: C:\WINDOWS\Fonts\DejaVuSans-BoldOblique.ttf; DestDir: {fonts}; Flags: onlyifdoesntexist uninsneveruninstall; FontInstall: DejaVu Sans Bold Oblique +;Source: C:\WINDOWS\Fonts\DejaVuSansMono.ttf; DestDir: {fonts}; Flags: onlyifdoesntexist uninsneveruninstall; FontInstall: DejaVu Sans Mono +;Source: C:\WINDOWS\Fonts\DejaVuSansMono-Bold.ttf; DestDir: {fonts}; Flags: onlyifdoesntexist uninsneveruninstall; FontInstall: DejaVu Sans Mono Bold +;Source: C:\WINDOWS\Fonts\DejaVuSansMono-BoldOblique.ttf; DestDir: {fonts}; Flags: onlyifdoesntexist uninsneveruninstall; FontInstall: DejaVu Sans Mono Bold Oblique +;Source: C:\WINDOWS\Fonts\DejaVuSansMono-Oblique.ttf; DestDir: {fonts}; Flags: onlyifdoesntexist uninsneveruninstall; FontInstall: DejaVu Sans Mono Oblique +;Source: C:\WINDOWS\Fonts\DejaVuSans-Oblique.ttf; DestDir: {fonts}; Flags: onlyifdoesntexist uninsneveruninstall; FontInstall: DejaVu Sans Oblique +;Source: C:\WINDOWS\Fonts\DejaVuSerif.ttf; DestDir: {fonts}; Flags: onlyifdoesntexist uninsneveruninstall; FontInstall: DejaVu Serif +;Source: C:\WINDOWS\Fonts\DejaVuSerif-Bold.ttf; DestDir: {fonts}; Flags: onlyifdoesntexist uninsneveruninstall; FontInstall: DejaVu Serif Bold ; Inconsolata font -;Source: C:\WINDOWS\Fonts\Inconsolata.otf; DestDir: {fonts}; Flags: onlyifdoesntexist uninsneveruninstall; FontInstall: Inconsolata -; -; -;----------------------------------------------------------------------------- -; build system files -; -;Source: build\doc\manuals\Pd\Welcome.html; DestDir: {app}; Flags: isreadme; Tasks: -Source: build\doc\manuals\Pd\ReadMe.html; DestDir: {app}; Flags: isreadme -;Source: build\doc\manuals\Pd\License.html; DestDir: {app}; Flags: isreadme -;Source: build\doc\manuals\Pd\Pd-LICENSE.txt; DestDir: {app}; Flags: isreadme -Source: build\pd-settings.reg; DestDir: {app}; Flags: ignoreversion -Source: build\bin\*.*; DestDir: {app}\bin; Flags: ignoreversion confirmoverwrite recursesubdirs uninsremovereadonly -Source: build\doc\*.*; DestDir: {app}\doc; Flags: ignoreversion confirmoverwrite recursesubdirs uninsremovereadonly; Attribs: readonly -Source: build\extra\*.*; DestDir: {app}\extra; Flags: ignoreversion recursesubdirs uninsremovereadonly promptifolder; Attribs: readonly -Source: build\include\*.*; DestDir: {app}\include; Flags: ignoreversion confirmoverwrite recursesubdirs uninsremovereadonly -Source: build\lib\*.*; DestDir: {app}\lib; Flags: ignoreversion recursesubdirs -; -; DLLs -; -Source: build\bin\lib*.dll; DestDir: {sys}; Flags: restartreplace confirmoverwrite sharedfile -#ifexist "build\msvcp71.dll" -Source: build\msvcp71.dll; DestDir: {sys}; Flags: restartreplace uninsneveruninstall sharedfile -#endif -#ifexist "build\msvcr71.dll" -Source: build\msvcr71.dll; DestDir: {sys}; Flags: restartreplace uninsneveruninstall sharedfile -#endif -;; build stuff is not included now -;Source: build\portaudio\*.*; DestDir: {app}\portaudio; Flags: ignoreversion recursesubdirs -;Source: build\src\*.*; DestDir: {app}\src; Flags: ignoreversion recursesubdirs -;Source: build\tcl\*.*; DestDir: {app}\tcl; Flags: ignoreversion recursesubdirs - -[Code] -function NextButtonClick(CurPageID: Integer): Boolean; -var - ResultCode: Integer; -begin - case CurPageID of - wpReady: - begin - if(FileExists(ExpandConstant('{app}\unins000.exe')) AND FileExists(ExpandConstant('{app}\bin\pd.exe'))) then begin - if MsgBox('Found a previous Version of Pure Data at ' + ExpandConstant('{app} ') + #13#13 'Do you want to uninstall it first? (recommended)', mbConfirmation, MB_YESNO) = idYes then begin - if not Exec(ExpandConstant('{app}\unins000.exe'), '', '', SW_SHOWNORMAL, ewWaitUntilTerminated, ResultCode) then - MsgBox('NextButtonClick:' #13#13 'The uninstall file could not be executed. ' + SysErrorMessage(ResultCode) + '.', mbError, MB_OK); - end; - end; - BringToFrontAndRestore(); - MsgBox('NextButtonClick:' #13#13 'The normal installation will now start.', mbInformation, MB_OK); - end; - end; - - Result := True; -end; - +;Source: C:\WINDOWS\Fonts\Inconsolata.otf; DestDir: {fonts}; Flags: onlyifdoesntexist uninsneveruninstall; FontInstall: Inconsolata +; +; +;----------------------------------------------------------------------------- +; build system files +; +;Source: build\doc\manuals\Pd\Welcome.html; DestDir: {app}; Flags: isreadme; Tasks: +Source: build\doc\manuals\Pd\ReadMe.html; DestDir: {app}; Flags: isreadme +;Source: build\doc\manuals\Pd\License.html; DestDir: {app}; Flags: isreadme +;Source: build\doc\manuals\Pd\Pd-LICENSE.txt; DestDir: {app}; Flags: isreadme +Source: build\pd-settings.reg; DestDir: {app}; Flags: ignoreversion +Source: build\bin\*.*; DestDir: {app}\bin; Flags: ignoreversion confirmoverwrite recursesubdirs uninsremovereadonly +Source: build\doc\*.*; DestDir: {app}\doc; Flags: ignoreversion confirmoverwrite recursesubdirs uninsremovereadonly; Attribs: readonly +Source: build\extra\*.*; DestDir: {app}\extra; Flags: ignoreversion recursesubdirs uninsremovereadonly promptifolder; Attribs: readonly +Source: build\include\*.*; DestDir: {app}\include; Flags: ignoreversion confirmoverwrite recursesubdirs uninsremovereadonly +Source: build\lib\*.*; DestDir: {app}\lib; Flags: ignoreversion recursesubdirs +; +; DLLs +; +Source: build\bin\lib*.dll; DestDir: {sys}; Flags: restartreplace confirmoverwrite sharedfile +#ifexist "build\msvcp71.dll" +Source: build\msvcp71.dll; DestDir: {sys}; Flags: restartreplace uninsneveruninstall sharedfile +#endif +#ifexist "build\msvcr71.dll" +Source: build\msvcr71.dll; DestDir: {sys}; Flags: restartreplace uninsneveruninstall sharedfile +#endif +;; build stuff is not included now +;Source: build\portaudio\*.*; DestDir: {app}\portaudio; Flags: ignoreversion recursesubdirs +;Source: build\src\*.*; DestDir: {app}\src; Flags: ignoreversion recursesubdirs +;Source: build\tcl\*.*; DestDir: {app}\tcl; Flags: ignoreversion recursesubdirs + +[Code] +function NextButtonClick(CurPageID: Integer): Boolean; +var + ResultCode: Integer; +begin + case CurPageID of + wpReady: + begin + if(FileExists(ExpandConstant('{app}\unins000.exe')) AND FileExists(ExpandConstant('{app}\bin\pd.exe'))) then begin + if MsgBox('Found a previous Version of Pure Data at ' + ExpandConstant('{app} ') + #13#13 'Do you want to uninstall it first? (recommended)', mbConfirmation, MB_YESNO) = idYes then begin + if not Exec(ExpandConstant('{app}\unins000.exe'), '', '', SW_SHOWNORMAL, ewWaitUntilTerminated, ResultCode) then + MsgBox('NextButtonClick:' #13#13 'The uninstall file could not be executed. ' + SysErrorMessage(ResultCode) + '.', mbError, MB_OK); + end; + end; + BringToFrontAndRestore(); + MsgBox('NextButtonClick:' #13#13 'The normal installation will now start.', mbInformation, MB_OK); + end; + end; + + Result := True; +end; + diff --git a/packages/win32_inno/pdPatch_catGraphics.ico b/packages/win32_inno/pdPatch_catGraphics.ico new file mode 100644 index 0000000000000000000000000000000000000000..04921c65cfc6b75be80f995e0094112a7cbb42c5 Binary files /dev/null and b/packages/win32_inno/pdPatch_catGraphics.ico differ