/build/static/layout/Breadcrumb_cap_w.png

Launch script once

Hello,
how can i create package that it after first shortcut launch runs script which copy one file from one directory to another?

Thank you in advance.

0 Comments   [ + ] Show comments

Answers (20)

Posted by: pjgeutjens 14 years ago
Red Belt
1
ok, you know what, I'm gonna respond to this, hope you guys don't mind...

Lanselots, I've been posting on these forums for awhile now, and I think I'm entitled to say I've made some good contributions to this place. I actually do enjoy helping people out with their problems, so why not..

You should realise however that I do have a dayjob packaging, so I post here in those small windows where I have a bit of time to kill, it's not like I have nothing else to do all day. Now, and I repeat myself, while I enjoy helping out, I do have SOME expectations of the people I provide answers to. The main one being the ability to do some research on their own after being pointed in a certain direction. Your scripting question for example: you would have about 50 examples of exactly what you need after a few minutes with Google (seach for... say... VBS copy file, VBS launch application...). There's some things I consider to be core skills for a packager, and scripting is one of em, so a packager should at least be inclined to learn these things (on his own).

If it turns out even these small demands are too much, then yes, you will have to pay for my services. I command decent wages doing this job, and there's limits to just how charitable I can be...

Don't takes this personally, take it as a good piece of advise. The knowledge of how and where to look for information is to me one of the most important life-skills, so get to it and dive into your problem with a bit more gusto...

[/rant]

PJ
Posted by: pjgeutjens 14 years ago
Red Belt
0
ok, time to spell it out

1) make a script that copies the file, and then executes your program afterwards
2) make a shortcut that executes the script.

I should get paid for this stuff....
Posted by: lanselots 14 years ago
Fifth Degree Brown Belt
0
hmm i knwo that you understand what you writted, but unfortunatly i did not, sorry, maybe there some more easy explanation of that?
Posted by: timmsie 14 years ago
Fourth Degree Brown Belt
0
1) make a script that copies the file, and then executes your program afterwards
2) make a shortcut that executes the script.


You already have a script to do the copy, amend the script so that after the copy is complete it runs the application exe.

now add this script to your msi and change the shortcut so that it points to your script.
Posted by: lanselots 14 years ago
Fifth Degree Brown Belt
0
also unfortunatly I`m not an expert of scripts and i have no idea what or where should i write that in the script, sorry for that, so may be somone could help me with that, here is my script:

set filesys=CreateObject("Scripting.FileSystemObject")
If filesys.FileExists ("C:\Program Files (x86)\[INSTALLDIR]\filename.wksp") Then
filesys.CopyFile "C:\Program Files (x86)\[INSTALLDIR]\fielname.wksp", "Path2\...\...."
end if
Posted by: MSIPackager 14 years ago
3rd Degree Black Belt
0
ORIGINAL: pjgeutjens

ok, time to spell it out

1) make a script that copies the file, and then executes your program afterwards
2) make a shortcut that executes the script.

I should get paid for this stuff....


lol - thanks for breaking it down for him, I mistakenly assumed he'd fill in the blanks!

could be a long thread.... [X(]
Posted by: pjgeutjens 14 years ago
Red Belt
0
I've decided I wasn't actually kidding when I said I should be paid for this.
Posted by: lanselots 14 years ago
Fifth Degree Brown Belt
0
so will any one will help me with that or just will laughing at me that i dont know such thing?
Posted by: MSIPackager 14 years ago
3rd Degree Black Belt
0
I've decided I wasn't actually kidding when I said I should be paid for this.

lanselots: see above
Posted by: timmsie 14 years ago
Fourth Degree Brown Belt
0
I'm not laughing.......

so the point is that customer

I doubt your customer is either........
Posted by: lanselots 14 years ago
Fifth Degree Brown Belt
0
Thank you for advice i just figured out how to do that and hoping that did not make any problems for anyone, Thank you a lot :)
Posted by: cygan 14 years ago
Fifth Degree Brown Belt
0
good on you
all you needed was the run command to launch your .exe
Posted by: anonymous_9363 14 years ago
Red Belt
0
The knowledge of how and where to look for information is to me one of the most important life-skillsWas it Thomas Edison who said that genius isn't knowing all the answers but knowing where to look to find them?
Posted by: bearden3 14 years ago
Purple Belt
0
I'm surprised that VBScab didn't let you know that you don't have a beginning [rant] to match the trailing [/rant]! LOL
Posted by: bearden3 14 years ago
Purple Belt
0
Well, I don't know if he said that but he did say "Genius is 1% inspiration and 99% perspiration".
Posted by: MSIPackager 14 years ago
3rd Degree Black Belt
0
By using a script!
Posted by: lanselots 14 years ago
Fifth Degree Brown Belt
0
i have created script, but where should i put it or how should i do that script works only for the first time shortcut launch
Posted by: anonymous_9363 14 years ago
Red Belt
0
Er...isn't that more or less the same as installing a file, in which case, why would you need a script?
Posted by: pjgeutjens 14 years ago
Red Belt
0
By using a script!
and having your shortcut execute it!

(for completeness' sake)
Posted by: lanselots 14 years ago
Fifth Degree Brown Belt
0
so the point is that customer whants that it copy to the different directory only when launching program.
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