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

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
By using a script!
Answered 09/28/2010 by: MSIPackager
Third Degree Black Belt

Please log in to comment
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
Answered 09/28/2010 by: lanselots
Fourth Degree Brown Belt

Please log in to comment
0
Er...isn't that more or less the same as installing a file, in which case, why would you need a script?
Answered 09/28/2010 by: VBScab
Red Belt

Please log in to comment
0
By using a script!
and having your shortcut execute it!

(for completeness' sake)
Answered 09/28/2010 by: pjgeutjens
Red Belt

Please log in to comment
0
so the point is that customer whants that it copy to the different directory only when launching program.
Answered 09/28/2010 by: lanselots
Fourth Degree Brown Belt

Please log in to comment
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....
Answered 09/28/2010 by: pjgeutjens
Red Belt

Please log in to comment
0
hmm i knwo that you understand what you writted, but unfortunatly i did not, sorry, maybe there some more easy explanation of that?
Answered 09/28/2010 by: lanselots
Fourth Degree Brown Belt

Please log in to comment
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.
Answered 09/28/2010 by: timmsie
Fourth Degree Brown Belt

Please log in to comment
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
Answered 09/28/2010 by: lanselots
Fourth Degree Brown Belt

Please log in to comment
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(]
Answered 09/28/2010 by: MSIPackager
Third Degree Black Belt

Please log in to comment
0
I've decided I wasn't actually kidding when I said I should be paid for this.
Answered 09/28/2010 by: pjgeutjens
Red Belt

Please log in to comment
0
so will any one will help me with that or just will laughing at me that i dont know such thing?
Answered 09/28/2010 by: lanselots
Fourth Degree Brown Belt

Please log in to comment
0
I've decided I wasn't actually kidding when I said I should be paid for this.

lanselots: see above
Answered 09/28/2010 by: MSIPackager
Third Degree Black Belt

Please log in to comment
0
I'm not laughing.......

so the point is that customer

I doubt your customer is either........
Answered 09/28/2010 by: timmsie
Fourth Degree Brown Belt

Please log in to comment
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
Answered 09/28/2010 by: pjgeutjens
Red Belt

Please log in to comment
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 :)
Answered 09/28/2010 by: lanselots
Fourth Degree Brown Belt

Please log in to comment
0
good on you
all you needed was the run command to launch your .exe
Answered 09/28/2010 by: cygan
Fifth Degree Brown Belt

Please log in to comment
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?
Answered 09/28/2010 by: VBScab
Red Belt

Please log in to comment
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
Answered 09/28/2010 by: bearden3
Purple Belt

Please log in to comment
0
Well, I don't know if he said that but he did say "Genius is 1% inspiration and 99% perspiration".
Answered 09/28/2010 by: bearden3
Purple Belt

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