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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Create Advertized Shortcuts for self-healing OR use Active Setup
Answered 03/03/2010 by: mekaywe
Brown Belt

Please log in to comment
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.
Answered 03/04/2010 by: VBScab
Red Belt

Please log in to comment
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?
Answered 03/04/2010 by: cmi2000
Senior Purple Belt

Please log in to comment
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?
Answered 03/04/2010 by: VBScab
Red Belt

Please log in to comment
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...
Answered 03/04/2010 by: cmi2000
Senior Purple Belt

Please log in to comment
0
Can you give me what is the path given for that particular file in MSI.
Answered 03/04/2010 by: mekaywe
Brown Belt

Please log in to comment
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
Answered 03/04/2010 by: cmi2000
Senior Purple Belt

Please log in to comment
0
During 1st launch of shortcut., is the MSI selfhealing ?
Answered 03/04/2010 by: mekaywe
Brown Belt

Please log in to comment
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?
Answered 03/04/2010 by: cmi2000
Senior Purple Belt

Please log in to comment
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.
Answered 03/05/2010 by: VBScab
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity