PDA

View Full Version : Conditional run BEFORE starting install



NewsArchive
01-19-2012, 12:51 AM
I need to conditionally delete some files BEFORE starting the install.
I need a step that follows:

If Exists('demover.sys')
Remove('demover.sys')
Remove('*.tps')
End

1) HOW do I code this?
2) WHERE do I insert the code?
3) Can I do this via the SB GUI rather than the script editor?

Sim

NewsArchive
01-19-2012, 12:52 AM
Sim,

> I need to conditionally delete some files BEFORE starting the install.
> I need a step that follows:
>
> If Exists('demover.sys')
> Remove('demover.sys')
> Remove('*.tps')
> End
>
> 1) HOW do I code this?
> 2) WHERE do I insert the code?
> 3) Can I do this via the SB GUI rather than the script editor?

The Script Editor in SetupBuilder is GUI.

See attached screenshot.

Friedrich

NewsArchive
01-19-2012, 01:10 AM
Hi Friedrich,

Thanks very much for your help!

Sim
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~