This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Copy file before Setup.rul
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 25, 2008
03:51 PM
Copy file before Setup.rul
How can I copy a vbs file to the TARGETDIR before the code in setup.rul runs?
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 26, 2008
09:26 AM
Which project type are you using? In a InstallScript project, setup.rul is where all your setup logic lives, it controlls all of the install (except extraction of temp files to SUPPORTDIR). So you can't copy files to TARGETDIR (or INSTALLDIR) before your script starts to run. But you could copy the file as the very first action in your script, e.g. in the OnBegin event handler. Note however that the user might select a different directory during the dialog phase of your install.
Stefan Krueger
InstallSite.org
InstallSite.org
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 28, 2008
07:42 AM
Thanks for your reply. We're using an Installscript project. In the interview phase of the install I want to present the user with a custom dialog that has a drop down list of existing websites on the machine so they can choose the install website. To get the list of sites from IIS I have to deploy a vbs file before I display the dialog. I know this wouldn't be a big deal to do later in the install, but I'd like to keep the dialog in the beginning so that all of the dialogs are presented in one batch.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 28, 2008
10:04 AM
I found my own answer to this. I added the file under the Language Independent module under Support Files.
![](/skins/images/CC38E504FC9E1309DC48ACFEB4925670/responsive_peak/images/icon_anonymous_message.png)