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

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
You'll need to use ExpandEnvironmentStrings. Do a little search on google for that, plenty of stuff to be found about it.
Answered 12/17/2010 by: Rheuvel
Brown Belt

Please log in to comment
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惙
Answered 12/17/2010 by: captain_planet
Second Degree Brown Belt

Please log in to comment
0
Robert DinneroIs he *still* waiting? Talking Italian...
Answered 12/17/2010 by: VBScab
Red Belt

Please log in to comment
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 [:'(]
Answered 12/17/2010 by: cmi2000
Senior Purple Belt

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

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

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