/build/static/layout/Breadcrumb_cap_w.png

Populate PSP8 registry keys

I am attempting to deploy "Jasc Paint Shop Pro 8" silently in a school environment and add some registry keys to bypass the registration and the file association setup during the first run for any user on that machine. "Jasc Paint Shop Pro 8" comes with msi package which is not a problem. My issue is to applying the following keys during the first run:

[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)

Posted by: MSIPackager 15 years ago
3rd Degree Black Belt
0
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.
Posted by: captain_planet 15 years ago
Black Belt
0
lam2070 - Firstly don't ask a non-scripting question in the scripting forum (http://itninja.com/question/faulttree-101026). Secondly, check your replies in your initial thread before you duplicate your question here. Thirdly, don't cross-post.
Posted by: lam2070 15 years ago
Senior Yellow Belt
0
captain_plane, what make you think that I did not check the replies in my initial thread? From what I can say, I have checked and I could not find the answer. I was thinking that ActiveSetup is part of scripting, that is why I asked in the Scripting. Then someone said that is not a scripting, so I move to Package Development. And now you are complaining that I am asking in here. So can you tell me where can I ask about this type of question, and what should I do when someone tells me that I am asking in the wrong place. Move or not move. If I move, you are complaining. If I don't move, people in another forum is complaining. I am not aware of any rules here that if I ask in the wrong forum, I should stop continue in the wrong forum, and at the same time should not open another thread in another forum. Can you clarify?

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 "StubPath"="regedit /s C:\FILEServer\Regfiles\psp8.reg" without any success. The content of the psp8.reg is:

[HKEY_CURRENT_USER\Software\Jasc\Paint Shop Pro 8\General]
"EULA"=dword:00000001
"Language"="IEnglish"
"SelectScript"="Art"
"ERegAttempted"=dword:00000001
"RunOnce"=dword:00000001




Posted by: MSIPackager 15 years ago
3rd Degree Black Belt
0
Do you really have "" around the command or are they just in your forum post?

C:\WINDOWS\regedit.exe /s C:\FILEServer\Regfiles\psp8.reg

should work fine...
Posted by: captain_planet 15 years ago
Black Belt
0
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.
Posted by: captain_planet 15 years ago
Black Belt
0
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.


(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.
 
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