PDA

View Full Version : Lock Install Directory, but not the drive (SB 5.5 DEV)



NewsArchive
11-28-2006, 06:23 AM
Hi,

I want to lock the directory, but not the drive.

I have tried this, but it locks the dir and the drive:

! The Wizard Loop displays the dialog screens that the user sees in the
installation
Loop Wizard
Wizard Auto Break
If %_SB_DIALOGNEXTID% Equals "2" Then
Disable Control ID $DESTINATION_EDIT1$
Disable Control ID $DESTINATION_BROWSE$
End
End


Thanks,
René

NewsArchive
11-28-2006, 06:23 AM
René,

Several options here. You can check if the user changed the drive and if
this is the case, reset the drive letter to its original.

Or you can display a Select Drive dialog instead of the Select Folder
dialog. See "Combo Box Demo 2.sb5" demo script.

Does this help?

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder 6
Create Windows Vista ready installations in minutes