xml - executing VBscript after installation on target machine -


i trying run executable vbscript (.exe) after files placed on target machine. installer being used made in visual studio 2013 wix toolset. tried couple of examples different sources technet , website. none me since lot of articles/post around 2008 , don't seem apply anymore.

currently using piece of code try archieve goal:

     <fragment>     <customaction       id="runinstallscript"       directory="installfolder"       execommand="[installfolder]installation script.exe"       execute="commit"       return="ignore"     />     <installexecutesequence>     <custom action="runinstallscript" before="installfinalize" />   </installexecutesequence>   </fragment> 

even though compiler doesn't see errors , compiles fine code isn't working. file needs executed placed in installation folder, file present. thing left execute once during installation and/or de-installation.

i have searched information long time in order figure out, bud can't working way it. if problem solved finaly have functioning installer can deploy streamline setup of control panels.

all , suggestions welcome.

thanks in advance,

i figured out problem was. seems declaration , calling of custom action need in same fragment add file function. this:

    <fragment>      <componentgroup id="script" directory="installfolder">       <component id="installationscript" guid="{afa49eed-4f2c-42b4-b7ec-d3b7896c970c}">         <file id="installationscript" keypath="yes" source="c:\users\fjansen\documents\visual studio 2013\projects\wix test\installation script\bin\debug\installationscript.exe" />       </component>     </componentgroup>      <customaction       id="installscript"       directory="installfolder"       execommand="[installfolder]installationscript.exe"       execute="commit"       return="check">     </customaction>     <installexecutesequence>       <custom action="installscript" before="installfinalize" />     </installexecutesequence>    </fragment> 

it small error in end bud not easy find problem was. hope example people solve same problem , save them lot of time figuring out problem is.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -