Can we create 2 stub path in an msi
1 stub path should be for msi and teh other stub path needs to run a vbscript which copies 2 files from appdatafolder\music\xyz
i couldn't do that sucessfully
i tried to run vbs from run once key even then it didnot work
under run once key i'm using the newstring name as script and value as cscript.exe /s "%appdata%\\Music\xyz\\test.vbs"

Can u help me out how to get this done in any way...tell what going wrong....

Thanks

Answer Summary:
Here is some information which I can share with you for RunOnce key. Hope it will answer your question. http://msiworld.blogspot.com.au/2009/11/runonce-key.html Regarding StubPath. Yes, you can run two StubPaths, but make sure they are in different Reg hive. If you have created one reghive of [ProductCode] then make another of any other unique name like {runvbs} Any name will also work, not necessarily you have to keep a GUID.
Cancel
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Community Chosen Answer

2

Here is some information which I can share with you for RunOnce key. Hope it will answer your question.

http://msiworld.blogspot.com.au/2009/11/runonce-key.html

Regarding StubPath. Yes, you can run two StubPaths, but make sure they are in different Reg hive. If you have created one reghive of [ProductCode] then make another of any other unique name like {runvbs}

Any name will also work, not necessarily you have to keep a GUID.

Hope it helps.

Answered 04/19/2012 by: piyushnasa
Red Belt

  • Instead of creating two reg hives for Activesetup call msi repair in VBscript.This will solve the problem.
Please log in to comment

Answers

1

Yes, make sure GUID should be different for both.

Answered 04/27/2012 by: er.hsingh
Orange Senior Belt

Please log in to comment
Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja

Share