Hi,
Yes, there is. I will try to describe the method in several steps:
1. in the
Install Parameters page you can add 2 hidden
public properties with empty values (just make sure that the "Value" field is blank). Let's name the properties PAR and PARCONF.
2. in the
Dialogs page you can create a new dialog by clicking the [New Dialog] button from the toolbar (let's name NewDialog the dialog created). Now, on the new dialog you can create 2
Edit Boxes and rename their
Property Names to PAR and PARCONF, respectively (the first box will contain the password and the second one the retyped password).
3. in the
Custom Action page you can create a
Script Inline UI Custom Action and a
File attached to installation UI Custom Action. The first one (let's call it "Message") can have the "Script Text" set to something like this:
In the second one (let's call it "Encrypt") you can use your VBS algorithm . Please make sure that your algorithm retains the result in a
public property (let's call ENCPROP the property resulted from encryption).
4. in the dialog created at step 2. you can add 3
Published Events on the
"Next" button. They can look like this:
Code: Select all
Event | Argument | Condition
--------------------------------------------------------------------
DoAction |Message | (PAR <> PARCONF) OR (PAR="") OR (PARCONF="")
DoAction |Encrypt | (PAR=PARCONF) AND (PAR<>"") AND (PARCONF<>"")
NewDialog |FolderDlg | (PAR=PARCONF) AND (PAR<>"") AND (PARCONF<>"")
5. in the
Registry page you can create a new
value. In the data field you can put the ENCPROP property from step 3.:
A similar approach can be used for the Activation Code.
Best regards,
Cristi
______________________________
Cristi Costache
Advanced Installer Team
http://www.advancedinstaller.com/
FOLLOW US
Get the latest news in Application Packaging