/build/static/layout/Breadcrumb_cap_w.png

Text File Modification with WSE

Hi

I am trying to modify a text file to create a unique machine ID for an application.

Currently I have an MSI that asks for user input then inserts that into the registry. A Wise Script then reads that registry entry, displays an Information message (with OK/Cancel) showing the user's entry and modifies the text file.

Here's my problem: The script (as an EXE) works a treat on its own. When I insert it into the MSI (in Execute Deferred, just before installfinalize), the Wise Script seems to not read the registry entry. I have tried it in a blank MSI, creating the Registry Key manually and that doesn't work either.

Please can anyone help with what I'm doing wrong, or suggest a better method for modifying the text file?

Many thanks

Collin

0 Comments   [ + ] Show comments

Answers (2)

Posted by: aogilmor 19 years ago
9th Degree Black Belt
0
I would check on altiris.com support forum and see if others have addressed this re: WiseScript. since you know that the script works on its own it's got to be a timing issue. make sure you read the help file and SDK material. MSIs can be very picky about how external programs are run, both the timing and functionality.

If all you need to do is create a text file VBscript would be capable, and there are some good sample programs on the net for free. but again, watch the timing and read up on the SDK and wise help file.
Posted by: CollinF 19 years ago
Senior Yellow Belt
0
That's great information. Thankyou.

I'll check the Altiris Support and see what I can do. :)

Collin
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ