Copy files to %userprofiles%
Hi everybody,
I'm using WPS 7 to build a package about an application called Dinnero, it needs a ini file on the %userprofile% folder. The "capture" is taking it of %adminprofile% but I need to copy it to %userprofile% (non-admin user). So I thought to do that through a Vbscript, I supouse that I have to call this vbscript from "Execution Deferred", do you think the same?
Anyway, how can I copy this file to %userprofile% using a vbscript?
fso.CopyFile "c:\dinnero\dinnero.ini", "%userprofile%" ---> this doesn't works
I hope that you understand...
I'm using WPS 7 to build a package about an application called Dinnero, it needs a ini file on the %userprofile% folder. The "capture" is taking it of %adminprofile% but I need to copy it to %userprofile% (non-admin user). So I thought to do that through a Vbscript, I supouse that I have to call this vbscript from "Execution Deferred", do you think the same?
Anyway, how can I copy this file to %userprofile% using a vbscript?
fso.CopyFile "c:\dinnero\dinnero.ini", "%userprofile%" ---> this doesn't works
I hope that you understand...
0 Comments
[ + ] Show comments
Answers (6)
Please log in to answer
Posted by:
Rheuvel
14 years ago
Posted by:
captain_planet
14 years ago
Robert Dinnero? Ahh, that one....
You shouldn't be doing it via a vbscript. You should alter your directory table to accomplish this, and that may involve using a Set Property custom action. See these posts for more assistance:
http://www.appdeploy.com/messageboards/tm.asp?m=9325&mpage=1&key=setUserProfileNT鞏
http://itninja.com/question/how-do-you-roll-out-new-machines?4791&mpage=1&key=setUserProfileNT惙
You shouldn't be doing it via a vbscript. You should alter your directory table to accomplish this, and that may involve using a Set Property custom action. See these posts for more assistance:
http://www.appdeploy.com/messageboards/tm.asp?m=9325&mpage=1&key=setUserProfileNT鞏
http://itninja.com/question/how-do-you-roll-out-new-machines?4791&mpage=1&key=setUserProfileNT惙
Posted by:
cmi2000
14 years ago
I don't know who is Robert Dinnero... :-(
The point is that %userprofile is a Variable that is pointing to a network location, so when I install the package with admin user, this path doesn't exists....
I think to put a vbscript to copy this file like a shortcut on the StartMenu, but is uggly to do that [:'(]
The point is that %userprofile is a Variable that is pointing to a network location, so when I install the package with admin user, this path doesn't exists....
I think to put a vbscript to copy this file like a shortcut on the StartMenu, but is uggly to do that [:'(]
Posted by:
anonymous_9363
14 years ago
You need to either create a user feature and re-jig the MSI's feature tree in order to trigger self-healing (there's plenty of posts in the forum about self-healing) or use Active Setup. Use the former if the MSI contains any advertised entry-points, e.g. advertised shortcuts.
Oh and we were playing with the name 'Robert De Niro', who I'm sure you've heard of. My allusion was to a pop record of the 80s by Bananarama, "Robert De Niro's Waiting".
Oh and we were playing with the name 'Robert De Niro', who I'm sure you've heard of. My allusion was to a pop record of the 80s by Bananarama, "Robert De Niro's Waiting".
Posted by:
cmi2000
14 years ago
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.