Package Studio 8 and appdata\local folder
Thanks for a great forum and it has helped me many times. But this time I can't seem to find a good answer.
I'm making a transform for a vendor MSI package. When using this application, some configuration files are stored in c:\Users\<username>\appdata\local\
These files I want to deliver with the MST, so the users don’t need to do the configuration themselves.
When in Files, I can't seem to find the appropriate folder to place the files in. I tried using profiles\local settings\application data, but it doesn’t work. This is probably because we need to run the installation with elevated rights and it messes with the username.
Any ideas how to handle this?
I'm making a transform for a vendor MSI package. When using this application, some configuration files are stored in c:\Users\<username>\appdata\local\
These files I want to deliver with the MST, so the users don’t need to do the configuration themselves.
When in Files, I can't seem to find the appropriate folder to place the files in. I tried using profiles\local settings\application data, but it doesn’t work. This is probably because we need to run the installation with elevated rights and it messes with the username.
Any ideas how to handle this?
0 Comments
[ + ] Show comments
Answers (22)
Please log in to answer
Posted by:
oreillyr
14 years ago
If i am reading your post correctly...
There is a good chance that files and directory are created at runtime. Create the directory in your mst. Obtain the files after they are put down when app is launched as administrator. Ten make whatever config changes are needed and place them in your package. Then use active setup with the /fup switch to get them to replicate to users.
There is a good chance that files and directory are created at runtime. Create the directory in your mst. Obtain the files after they are put down when app is launched as administrator. Ten make whatever config changes are needed and place them in your package. Then use active setup with the /fup switch to get them to replicate to users.
Posted by:
Gard
14 years ago
I have the config files on the computer running Package Studio and tried too put them in the package with the add content button. Problem is, I can't put them too the c:\Users\<username>\appdata\local\ folder. This reference doesn't exist. The documentation says the windows\profiles\local settings\application data is the right place to put them. That should translate to c:\Users\<username>\appdata\local\ when the msi/mst are run. Since users don't have admin rights, we run it with elevated rights from SCCM. I tried to run the msi/mst manually and the files where placed in the c:\Users\<adminusername>\appdata\local\. That means that the windows\profiles\local settings\application data in WPS8 is the right place to put them, but the system doesn't handle the elevated rights as it should
Posted by:
anonymous_9363
14 years ago
Yes it does. You have asked it to put files into the logged-in user's profile and, since SCCM executes as local System, that's exactly where they've gone. :-) You'll find them somewhere beneath '%SystemRoot%\system32\config\systemprofile'.
You can either re-jig the feature tree so that use of an advertised entry-point (such as a shortcut) triggers a repair once the actual user's logged in or, as advised, you could use Active Setup.
You can either re-jig the feature tree so that use of an advertised entry-point (such as a shortcut) triggers a repair once the actual user's logged in or, as advised, you could use Active Setup.
Posted by:
Gard
14 years ago
Posted by:
anonymous_9363
14 years ago
Posted by:
netloony
14 years ago
Someone got a sollution for this problem.
I'm trying to install files in de application data folder of the user with a per-machine installation trough GPO.
My files are installed in the 'windows\system32\config\systemprofile' this triggers a repair everytime i run the application because the user can't acces that folder and the files aren't installed in de the correct folder.
I'm trying to install files in de application data folder of the user with a per-machine installation trough GPO.
My files are installed in the 'windows\system32\config\systemprofile' this triggers a repair everytime i run the application because the user can't acces that folder and the files aren't installed in de the correct folder.
Posted by:
anonymous_9363
14 years ago
Posted by:
Agathorn
13 years ago
I also have this problem. Trying to create a folder under [AppData] but if different users share the same machine and application a self repair is triggered all the time at every startup of the application.
Why is Active Setup the only option?
We distribute programs through SCCM and I get that the AppData folder at installtime is created at windows\system32\config\systemprofile.
But the self repair should create the folder at the correct location under the user profile. But it seems as if the installer checks whether the folder exists the last users profile, or not. Atleast according to event viewer.
Can someone point me in the right direction?
Why is Active Setup the only option?
We distribute programs through SCCM and I get that the AppData folder at installtime is created at windows\system32\config\systemprofile.
But the self repair should create the folder at the correct location under the user profile. But it seems as if the installer checks whether the folder exists the last users profile, or not. Atleast according to event viewer.
Can someone point me in the right direction?
Posted by:
AngelD
13 years ago
Posted by:
Agathorn
13 years ago
Posted by:
AngelD
13 years ago
Posted by:
Agathorn
13 years ago
Posted by:
Agathorn
13 years ago
Posted by:
anonymous_9363
13 years ago
Posted by:
Agathorn
13 years ago
Sorry VBScab I thought I explained it further up in this post but no, it wasn´t crystal clear :)
The issue is that if I package or create a mst for a vendor MSI, that creates a file or a folder under users AppDataFolder the self repair is really weird. It looks for the file or folder under the LAST users profile. The user who was logged in before the current user that is. And the current user doesn´t have access to the last users AppDataFolder. So if two users share a machine and a application the application will selfheal every time (or the first time for each user until another user logs on again and starts the application).
I have tried with having the files and folders and the HKCU reg value for self repair in the same component. As well as splitting them up but I get the same result. I can see in event viewer that the previous users AppDataFolder is being used.
I have also tried with having a parent feature with the HKCU regvalue and AppDataFolder folder and files and using DuplicateFiles table but I dont get it to work. The msi-installer fails. I use InstallShield2010 and the entries in DuplicateFiles table aren´t created automatically. But the error with "wrong user self heal" shouldn´t be related to the duplicatefiles table anyway, or?
The issue is that if I package or create a mst for a vendor MSI, that creates a file or a folder under users AppDataFolder the self repair is really weird. It looks for the file or folder under the LAST users profile. The user who was logged in before the current user that is. And the current user doesn´t have access to the last users AppDataFolder. So if two users share a machine and a application the application will selfheal every time (or the first time for each user until another user logs on again and starts the application).
I have tried with having the files and folders and the HKCU reg value for self repair in the same component. As well as splitting them up but I get the same result. I can see in event viewer that the previous users AppDataFolder is being used.
I have also tried with having a parent feature with the HKCU regvalue and AppDataFolder folder and files and using DuplicateFiles table but I dont get it to work. The msi-installer fails. I use InstallShield2010 and the entries in DuplicateFiles table aren´t created automatically. But the error with "wrong user self heal" shouldn´t be related to the duplicatefiles table anyway, or?
Posted by:
Agathorn
13 years ago
I was thinking that maybe its an error with the way that I create the folder under AppDataFolder? I simply create a component in InstallShield2010. Go to the component and under "Destination" i write [AppDataFolder]Netop\Netop Remote Control\Guest. Entries about the folder are created under "directory"-table.
Should I have another approach to this?
Should I have another approach to this?
Posted by:
Agathorn
13 years ago
Posted by:
anonymous_9363
13 years ago
Posted by:
Agathorn
13 years ago
Posted by:
anonymous_9363
13 years ago
Posted by:
Agathorn
13 years ago
Well the MSI and MST (from vendor) contains licenses so it´s not something I want to spread around.
But somehow it seems as if I got it working now! The difference I see now in the event viewer is that the broken keypath is from the registry and not a file with a absolute path. This is strange because i have always in the previous attempts, used reg-keys as keypaths. Never ever a file!
I´m glad that it works and it seems as if the error was files as keypaths and not reg-keys, but it would be nice to know how a file became a keypath? Or maybe a folder, but a folder cant be a keypath or am I wrong?
But somehow it seems as if I got it working now! The difference I see now in the event viewer is that the broken keypath is from the registry and not a file with a absolute path. This is strange because i have always in the previous attempts, used reg-keys as keypaths. Never ever a file!
I´m glad that it works and it seems as if the error was files as keypaths and not reg-keys, but it would be nice to know how a file became a keypath? Or maybe a folder, but a folder cant be a keypath or am I wrong?
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.