PDA

View Full Version : Run the explorer.exe



Unregistered
02-24-2015, 02:15 PM
hi,
i have setupbuilder 7.6

i use this code:
define wizard dialog (Custom Wizard Dialog)
loop wizard (Abort Dialog Inactive)
if %_SB_CONTROLID% contains "install" then
run program %windir%\explorer.exe (filename=explorer.exe, Target Folder=%windir% , Command Line= %curdir%)
end
end

this code works- but the explorer runs twice

linder
02-25-2015, 02:02 AM
Hello,

The problem is that you instructed the installer to run EXPLORER.EXE whenever the Loop gets executed. You forgot to add the If %_SB_DIALOGID% check (see attached screenshot from one of the custom dialog examples).

Does this help?

Friedrich