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.
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)
Please log in to answer
Posted by:
pjgeutjens
14 years ago
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
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
Posted by:
lanselots
14 years ago
Posted by:
timmsie
14 years ago
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
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
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
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
Posted by:
lanselots
14 years ago
Posted by:
MSIPackager
14 years ago
Posted by:
timmsie
14 years ago
Posted by:
lanselots
14 years ago
Posted by:
anonymous_9363
14 years ago
Posted by:
bearden3
14 years ago
Posted by:
bearden3
14 years ago
Posted by:
lanselots
14 years ago
Posted by:
anonymous_9363
14 years ago
Posted by:
pjgeutjens
14 years ago
Posted by:
lanselots
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.