comparison makeinst-script.sh @ 4075:423925d2c032

installer: run pkg rebuild in installer * makeinst-script.sh: add InstallPackages section with run of octave to install the packages index
author John Donoghue
date Wed, 06 Jan 2016 15:59:43 -0500
parents 0962acdde3be
children f2d7bb7777da
comparison
equal deleted inserted replaced
4074:44b303c931fb 4075:423925d2c032
324 WriteRegStr HKCR ".m" "backup_val" "\$0" 324 WriteRegStr HKCR ".m" "backup_val" "\$0"
325 no_back_type: 325 no_back_type:
326 WriteRegStr HKCR ".m" "" "Octave.Document.$VERSION" 326 WriteRegStr HKCR ".m" "" "Octave.Document.$VERSION"
327 WriteRegDWORD HKLM "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Octave-$VERSION" "RegisteredFileType" 1 327 WriteRegDWORD HKLM "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Octave-$VERSION" "RegisteredFileType" 1
328 \${EndIf} 328 \${EndIf}
329 SectionEnd
330
331 Section "InstallPackages"
332 ; fix the installed packages (if any)
333 SetOutPath "\$INSTDIR"
334 ExecWait '"\$INSTDIR\\bin\\octave-cli.exe" --no-gui -W -H -f -q --eval "pkg rebuild"' \$0
329 SectionEnd 335 SectionEnd
330 336
331 Section "Uninstall" 337 Section "Uninstall"
332 338
333 ReadRegDWORD \$0 HKLM "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Octave-$VERSION" "AllUsers" 339 ReadRegDWORD \$0 HKLM "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Octave-$VERSION" "AllUsers"