/build/static/layout/Breadcrumb_cap_w.png

Run once key


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


0 Comments   [ + ] Show comments

Answers (2)

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.
Posted by: piyushnasa 8 years ago
Red Belt
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.


Comments:
  • Instead of creating two reg hives for Activesetup call msi repair in VBscript.This will solve the problem. - Visalakshi 8 years ago
Posted by: er.hsingh 8 years ago
Orange Senior Belt
1

Yes, make sure GUID should be different for both.

 
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