I need to generate a file at install time, using a VB Script. I have tested it, and it works and give the results I was looking for. But I do not know how to integrate it into the MSI.
The script is calling:
- a system command-line ([SystemFolder]hostname.exe)
- a shipped EXE, which will be installed into [APPDIR]my_bin.exe
I need to create the file into [APPDIR].
I am using a "File attached to installation" CA.
When attaching the CA to CostFinalize, the properties ([APPDIR], [SystemFolder], etc.) are well known and usable through
Code: Select all
Session.Property("APPDIR")When attaching the CA to Install, InstallFiles, Commit, ... the file is created into the [SystemFolder]...
Could you please give me a tip, as I do not perfectly understand when the Session variables are still accessible or not? Is it possible to do this? Is there another way?
Best regards,
-- Nicolas D.
FOLLOW US
Get the latest news in Application Packaging