/build/static/layout/Breadcrumb_cap_w.png

Files in Profile user

Hi everybody,
I'm making a package of an application that uses severals files from the user profile, like:
C:\document and settings\user\Local Settings\Application Data\XXX\YYY
I did it, but in Wise, the user profile is saved in Windows\profiles\local settings\xxx; later, when I'm installing this folder is saved in C:\document and settings\Administrator\Local Settings\Application Data\XXX\YYY and I need to be logged with a normal user without administrator's permissions, so I can't do the installation with it....
Does anybody knows how can I do for put this folder in the user profile ??

0 Comments   [ + ] Show comments

Answers (10)

Posted by: mekaywe 14 years ago
Brown Belt
0
Create Advertized Shortcuts for self-healing OR use Active Setup
Posted by: anonymous_9363 14 years ago
Red Belt
0
Mekaywe is only telling you half the story about advertised shortcuts. Rather than repeat stuff which has been done to death, I'll simply point you at John McFadyen's blog on Windows Live. Seek out his article on self-healing. If your package has no advertised entry-points, search AppDeploy and Google for Active Setup.

BTW, WPS shows the path in that way purely because it can't know how the package is going to be installed.
Posted by: cmi2000 14 years ago
Senior Purple Belt
0
I was finding out for Active Setup here in APPDEPLOY, and I found it:
"If i am correct You are using Wise package studio, use the Set Directory custom action and set ProfileFolder to %USERPROFILE%\Config and place after CostFinalize action"
(http://itninja.com/question/faulttree-108256&mpage=1&key=active%2Csetup&#58265)

Can I use this Custom Action in that way :
Set Directory
Custom Action Name: My CA
Directory: ProfileFolder
Directory Value: %USERPROFILE%\Local Settings

Could you explain me?
Posted by: anonymous_9363 14 years ago
Red Belt
0
Claudio, does your package contain shortcuts and, if so, are any of them advertised, i.e. where the shortcut's 'Target', viewed 'Shortcut' table in the Direct Editor view, does not point to an executable but to a feature?
Posted by: cmi2000 14 years ago
Senior Purple Belt
0
Hi VBScab, my package contain a shortcut and it's advertised, but this shortcut is pointing to an executable file in the program files folder; and it's in the complete Feature. In the other hand, the files that the application needs are in the current user profile, but the installation put them in the Administrator profile...
Do you understand?? My english isn't good enough...
Posted by: mekaywe 14 years ago
Brown Belt
0
Can you give me what is the path given for that particular file in MSI.
Posted by: cmi2000 14 years ago
Senior Purple Belt
0
The shorcut is pointing to C:\program files\IPC2009\Target.exe, and the files needed by the application have to be in C:\documents and settings\%Username%\Local Settings\Application Data\Google
Posted by: mekaywe 14 years ago
Brown Belt
0
During 1st launch of shortcut., is the MSI selfhealing ?
Posted by: cmi2000 14 years ago
Senior Purple Belt
0
Yes! during every launch of shortcut, the MSI is selfhealing, but when the application is opened it shows an error "Network initalization failed, Permission denied", then the application go on its graphics interface...
I was thinking, may be if I put this folder inside the Program Files folder and then I make a vbscript to copy this folder into c:\doc..and set..\%username%\etc\etc...
that could work?
Posted by: anonymous_9363 14 years ago
Red Belt
0
If the shortcut points to an EXE and not a feature, then it's NOT an advertised shortcut.

As I already said, read up John McFadyen's blog about self-healing. You need to create a new feature containing the user profile stuff and setting up the parent/child relationship such that the use of the advertised shortcut triggers the self-healing.
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