Hi,
I need to do the following steps within my installer:
1) Get a text string from the user (done within a custom dialog), store in a user-defined property, say [unenc_pass];
2) Run an application [embedded in the installer - not to be installed with the other files, should only be used for this stage), passing [unenc_pass] as a parameter;
- The application creates a file, say test.dat, in the [APPDIR], which is an encrypted form of [unenc_pass];
3) Read the new test.dat file into a user-defined property, let's say called [enc_pass];
4) Write that [enc_pass] string to a registry key;
5) Delete the test.dat file;
I can do each step individually like this:
1) Set password edit box property to my user-defined property [unenc_pass];
2) Custom action - run file attached to installation (run as Published Event for Next button in my custom dialog);
3) "Search" section - File Search - reading into property [ENC_PASS];
4) "Registry" section - add registry value based on [ENC_PASS];
5) "Files and Folders" section - delete test.dat;
But apart from #1 and #2, these steps run at different times during the install, so I don't think it'll work. Is there any way to do this other than writing a VBScript to do it instead? How would I do this in VBScript (i.e. launch a file attached to installation, add registry entry, etc)?
Thanks,
Nick.