/build/static/layout/Breadcrumb_cap_w.png

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...

0 Comments   [ + ] Show comments

Answers (6)

Posted by: Rheuvel 13 years ago
Brown Belt
0
You'll need to use ExpandEnvironmentStrings. Do a little search on google for that, plenty of stuff to be found about it.
Posted by: captain_planet 13 years ago
Black Belt
0
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惙
Posted by: anonymous_9363 13 years ago
Red Belt
0
Robert DinneroIs he *still* waiting? Talking Italian...
Posted by: cmi2000 13 years ago
Senior Purple Belt
0
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 [:'(]
Posted by: anonymous_9363 13 years ago
Red Belt
0
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".
Posted by: cmi2000 13 years ago
Senior Purple Belt
0
Thank you! this one seems to be the solution...

I know who is Robert De Niro (obviously), but Bananarama! I think that you are a little bit older than me [;)] lol (it was a joke)
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