Keypath on folders in userprofile / folders depending on user

H

Heiko Pliefke

Hello!

I have a product which needs a user-based folder, to store cached data.
This folder must be created by MSI, so if a new user logs on to the
machine, the installer should be triggered!

Unfortunately the keypath cannot be at "HKCU", because this will be
roamed - but the folder is at "LocalSettings" and will not be roamed!
So if you log on to a second machine, the installer will not be
triggered, the folder will not be created - and the application will not
work...

Is there any possibility to set an keypath at a user-dependent store?
And that the installer will be triggered, when this store does not exist?


Next question: Is it even possible, that this store will be configurable
from command-line? But it must remain a "user-based" folder... some
groups want this store at other local drives eg "D:\CACHE\%username%".


Any feedback is greatly appreciated!
Hope to help and best regards

Heiko Pliefke
 
H

Heiko Pliefke

Hello again!


Brett said:
Hi,
assuming each PC has a unique name, use a HKCU key of Software\MyCompany\RepairFlags\[ComputerName]=[Date]

This will ensure a repair on a new machine that a user logs onto.

Regards,
Brett.


Brett's idea is quite good, but not acceptable in my scenario. I need
the folder as keypath, because local profiles can be resetted in
support-purposes, then you have a server-side profile with filled
conditions, but the folder isn't there!
Same scenario if you format the machine...

Isn't there a MSI-feature, where a repair is triggered when "local
settings" aren't met?

I have tried to set the folder as keypath, but this will not work when
the user has administrative rights - the installer will not evaluate the
new userprofile (it points to the profile-folder of the last logged in
user!)

This is also not acceptable.


Any ideas?

Help is greatly appreciated, TIA

Heiko Pliefke
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top