cmd - Wix bundle runs a compiled BAT file at the end, that force shutdown -


this simplistic example of problem:

i have simple bundle

<chain>   <exepackage sourcefile="c:\users\this\desktop\aaa\eee.exe"></exepackage> </chain> 

the eee.exe result of iexpress of 2 files

  • eee.bat
  • eee.txt

iexpress runs cmd /c eee.bat

eee.bat stuff finishes line

shutdown -r -f -t 0 

once result of wix, installer, run forces reboot rerun instller

how can change behaviour of not rerun installer after reboot

forcing restart in middle of installation not practice. comments post pointed out, interrupting own installer. instead, can use successful exit code (0) tell installer reboot.

<chain>    <exepackage sourcefile="c:\users\this\desktop\aaa\eee.exe">       <exitcode value="0" behavior="forcereboot"/>   </exepackage> </chain> 

don't forget take shutdown line out of bat file.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -