Custom Attached Action
Under Commit in InstallExecuteSequence
File: xmlsetup.vbs
Function name: XMLSetup
Synch Exe, ignore return code
Exec Options: Commit
Scheduling: Always Exec
Condition: NOT Installed
Here's the code:
Function XMLSetup()
MsgBox Session.Property("USERNAME") & " TEST " & Session.Property("ProductID")
End Function
The output is a Message box with only the word "TEST" in it.
What in the world am I doing wrong? (I am a networking guy, not a programmer.)
I am repackaging a program for distribution via active directory. The program (not written by me) uses an xml file in the logged in user's my docs folder for all of it's options.
The install puts a template version of the xml file in place, and I am attempting to use CreateObject("Microsoft.XMLDOM") to put the user specific information into the file. The vbs file works file from the command prompt if i harcode the information to be inserted. I am trying to pass a folder name from the install to the script as a text string using session.property, but the string is always empty. To test wether it was passing information or not I tried the above vbs code in the file.
Thanks.
FOLLOW US
Get the latest news in Application Packaging