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 ??
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)
Please log in to answer
Posted by:
anonymous_9363
14 years ago
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.
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
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)
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?
"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)
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
Posted by:
cmi2000
14 years ago
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...
Do you understand?? My english isn't good enough...
Posted by:
mekaywe
14 years ago
Posted by:
cmi2000
14 years ago
Posted by:
cmi2000
14 years ago
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?
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
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.
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.
so that the conversation will remain readable.