NewsArchive
06-15-2009, 12:55 AM
If the install folder can't be found in the Registry, I then want to give
the user a chance to enter the install folder in a dialog box... How To?
--Script Code---
Set Variable %REGVALUE% to FUNCTION:Get Registry("LocalPath") from
"HKEY_LOCAL_MACHINE\SOFTWARE\InvoicePartner"
! If previous version not detected, abort nstallation
If %_SB_ERRORCODE% Equals "0" Then
Display Message Box "Cannot detect previous version information!" --
"Error"
/* Set Variable %_SB_INSTDIR% to FUNCTION:Get Registry("LocalPath") from
"HKEY_LOCAL_MACHINE\SOFTWARE\GaragePartner" */
!!!!!!!!
!!!!!!!! This would be a nice place to popup the dialog Box!!!!!!!!!!
!!!!!!!!
Else
! Set installation folder to detected folder
Set Variable %_SB_INSTALLDIR% to "%REGVALUE%"
End
--End Script Code--
TIA
--
Dan Scott
Garage Partner Pro
www.garagepartner.com
the user a chance to enter the install folder in a dialog box... How To?
--Script Code---
Set Variable %REGVALUE% to FUNCTION:Get Registry("LocalPath") from
"HKEY_LOCAL_MACHINE\SOFTWARE\InvoicePartner"
! If previous version not detected, abort nstallation
If %_SB_ERRORCODE% Equals "0" Then
Display Message Box "Cannot detect previous version information!" --
"Error"
/* Set Variable %_SB_INSTDIR% to FUNCTION:Get Registry("LocalPath") from
"HKEY_LOCAL_MACHINE\SOFTWARE\GaragePartner" */
!!!!!!!!
!!!!!!!! This would be a nice place to popup the dialog Box!!!!!!!!!!
!!!!!!!!
Else
! Set installation folder to detected folder
Set Variable %_SB_INSTALLDIR% to "%REGVALUE%"
End
--End Script Code--
TIA
--
Dan Scott
Garage Partner Pro
www.garagepartner.com