I'm trying to do my first attempt at creating a portable app and I am having difficulty in understanding what and where to do with registy information. below is the registry changes as noted when using RegShot. Do I put these in an external file (ie:portable.reg) or do they go within the ApplicationPortableTemplate.nsi (and if so where and how are they formated - example using below would be nice :-)). Finally, it sounds like I don't want absolute paths as shown in the registry entries below - what should I change them to?
HKLM\SOFTWARE\Agilent\VEE Pro\6.0\BaseDir: "C:\Program Files\Agilent\VEE Pro 6.0" HKLM\SOFTWARE\Agilent\VEE Pro\6.0\MaintVersion: "01" HKLM\SOFTWARE\Agilent\VEE Pro\6.0\InstallSource: "D:" HKLM\SOFTWARE\Agilent\VEE Pro\6.0\UserName: "Self" HKLM\SOFTWARE\Agilent\VEE Pro\6.0\Company: "Self" HKLM\SOFTWARE\Agilent\VEE Pro\6.0\SerialNumber: "ABC123456" HKLM\SOFTWARE\Agilent\VEE Pro\6.0\UserDir: "C:\Documents and Settings\UserName\My Documents\VEE Programs"
Regards,
Paul
You would put the reg keys in the portable apps template.
Look for the Define constants section, the !define REGKEYS line, example below.
For readability you can put the REGKEYS on seperate line by putting a \ after the ||
As for the drive letter, I don't believe the template will handle changing the drive letter.
Maybe someone here can explain how to write new values to the REG.
For those who have fought for it, freedom has a flavor the protected will never know.
"Because they stand on a wall and say, 'Nothing is going to hurt you tonight. Not on my watch.'" (A Few Good Men)
Coincidence is God's way of remaining anonymous.(Albert Einstein)
If I input as formated above I get the following error message on the line !define REGKEYS "HKLM\SOFTWARE\Agilent................
From the initial post, try putting all the reg keys on the same line
ex)
[reg key 1] || [reg key 2] || ... || [reg key n]
The developer formerly known as ZGitRDun8705
Even after putting on same line, I get the same error.
Try just deleting the main key since all subkeys are removed as well
like this:
!define REGKEYS "HKLM\SOFTWARE\Agilent\VEE Pro\6.0\"
or:
!define REGKEYS "HKLM\SOFTWARE\Agilent\VEE Pro\"
The developer formerly known as ZGitRDun8705