Populate PSP8 registry keys
[HKEY_CURRENT_USER\Software\Jasc\Paint Shop Pro 8\General]
"EULA"=dword:00000001
"Language"="IEnglish"
"SelectScript"="Art"
"ERegAttempted"=dword:00000001
"RunOnce"=dword:00000001
I save the above info into a reg file, if the merge the keys before running, it goes straight into the main program during the first run. However the keys are merged into the Current User only. I want everyone on the machine to have the above keys updated at the beginning of the first run and the application goes directly into the main program without asking me for any preference setup.
I have tried to use ActiveSetup without any success. Having said that, I am too new to ActiveSetup and I might not have done it properly.
0 Comments
[ + ] Show comments
Answers (6)
Please log in to answer
Posted by:
MSIPackager
15 years ago
ActiveSetup is pretty straight forward.. post your AS keys and we'll take a look.
The best way would be to have the shortcut advertised and have self repair write these keys for new users. Maybe painful (especially for a vendor MSI) if you are not very experienced with windows installer though.
Regards,
Rob.
The best way would be to have the shortcut advertised and have self repair write these keys for new users. Maybe painful (especially for a vendor MSI) if you are not very experienced with windows installer though.
Regards,
Rob.
Posted by:
captain_planet
15 years ago
Posted by:
lam2070
15 years ago
To MSIPackager, here is what I tried before:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\[ProductCode]
"StubPath"="regedit /s C:\\FILEServer\\Regfiles\\psp8.reg"
By the way, I have tried
"EULA"=dword:00000001
"Language"="IEnglish"
"SelectScript"="Art"
"ERegAttempted"=dword:00000001
"RunOnce"=dword:00000001
Posted by:
MSIPackager
15 years ago
Posted by:
captain_planet
15 years ago
Lam - relax. If you create a thread, even if it's in the wrong forum, carry on in the same thread. If a moderator sees it's in the wrong forum he or she will move it. That way you don't get people wasting their time when a question has already been answered.
If you need information on Active Setup, look here:
http://itninja.com/blog/view/appdeploy:-articles:-activesetup
But you should really be using an advertised shortcut to achieve this. I imagine it's a vendor MSI, so you'd need to create a transform using Orca to achieve this.
If you need information on Active Setup, look here:
http://itninja.com/blog/view/appdeploy:-articles:-activesetup
But you should really be using an advertised shortcut to achieve this. I imagine it's a vendor MSI, so you'd need to create a transform using Orca to achieve this.
Posted by:
captain_planet
15 years ago
Step 1: Open your MSI in Orca
Step 2: Choose 'Transform' > 'New Transform'
Step 3: Look in the 'Shortcut' table.
Find the main shortcut which is placed on the Start Menu. Look at the value in the 'Target' Column. If this is the name of a feature (check if it's in the first column in your 'Feature' table) then it is an advertised shortcut.
If so, you need to remember this name. Let's say in this example the value in this column (and hence the feature where you main exe resides) is called 'Complete' (yours MAY, and very possibly WILL be different).
Step 4: Add the following data into the relevant tables.
Step 5: Validate it, to make sure you've not added any errors along the way.
Step 6: Click 'Transform' > 'Generate Transform'. Save your transform.
Step 7: Install it using something like 'MSIEXEC.EXE /I <yourmsi.msi> TRANSFORMS=<yournewtransform.mst>'.
Now, when the advertised shortcut is clicked the windows installer will look at the keypath for PSP8CurrentUser (which is pspcureg3 - see the corresponding entry in the Registry table?). If this registry key is missing (which it should be) the Windows Installer will initiate a repair and write all the keys in this component. Of course, this isn't the only keypath the Installer checks but if you want to research into this more you should check ths link out: http://johnmcfadyen.spaces.live.com/blog/cns!9DD01136FC094724!123.entry
Step 2: Choose 'Transform' > 'New Transform'
Step 3: Look in the 'Shortcut' table.
Find the main shortcut which is placed on the Start Menu. Look at the value in the 'Target' Column. If this is the name of a feature (check if it's in the first column in your 'Feature' table) then it is an advertised shortcut.
If so, you need to remember this name. Let's say in this example the value in this column (and hence the feature where you main exe resides) is called 'Complete' (yours MAY, and very possibly WILL be different).
Step 4: Add the following data into the relevant tables.
(Components table)
PSP8CurrentUser {AEDA257E-B8DE-4D1E-8187-7981A4AD1610} INSTALLDIR 4 pspcureg3
(where '{AEDA257E-B8DE-.....' is a random GUID and INSTALLDIR is the install directory of your application (see 'Directory' table))
(FeatureComponents table)
Complete PSP8CurrentUser
(Registry table)
pspcureg1 1 Software\Jasc\Paint Shop Pro 8\General ERegAttempted #1 PSP8CurrentUser
pspcureg2 1 Software\Jasc\Paint Shop Pro 8\General RunOnce #1 PSP8CurrentUser
pspcureg3 1 Software\Jasc\Paint Shop Pro 8\General EULA #1 PSP8CurrentUser
pspcureg4 1 Software\Jasc\Paint Shop Pro 8\General SelectScript Art PSP8CurrentUser
pspcureg5 1 Software\Jasc\Paint Shop Pro 8\General Language IEnglish PSP8CurrentUser
Step 5: Validate it, to make sure you've not added any errors along the way.
Step 6: Click 'Transform' > 'Generate Transform'. Save your transform.
Step 7: Install it using something like 'MSIEXEC.EXE /I <yourmsi.msi> TRANSFORMS=<yournewtransform.mst>'.
Now, when the advertised shortcut is clicked the windows installer will look at the keypath for PSP8CurrentUser (which is pspcureg3 - see the corresponding entry in the Registry table?). If this registry key is missing (which it should be) the Windows Installer will initiate a repair and write all the keys in this component. Of course, this isn't the only keypath the Installer checks but if you want to research into this more you should check ths link out: http://johnmcfadyen.spaces.live.com/blog/cns!9DD01136FC094724!123.entry
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.