Monday 15 June 2015

.net - Resume installing after restart in WiX -


I am trying to create a bootstrap application using WixStandardBootstrapperApplication. It does all this except that I have to do a really well in addition to restarting.

I need to install a group of EXE files only the first one is .NET 4.5 and it needs to be restarted. I will delay in restarting, but I can not because one of the other programs is up to it. I've tried to use a Aksekt code to boot force, but when bootstrapper gets to start the computer, it gets stuck in the Aksekt code every time, and I can not even establish whether any exit Is there a way to implement the code if and if the program has not yet been restarted (or in any other logical manner)?

What I'm doing here ...

  & lt; ExePackage id = "NetFx45Redist" cache = "no" Compressed = "yes" PerMachine = "yes" Permanent = "yes" key = "yes" InstallCommand = "/ quiet / norestart" sourcefile = "C: \ Users \ visibleEP \ Documents \ Visual Studio 2012 \ projects posted \ Bootstrapper1 \ VEP \ Setup Files \ dotNetFx45_Full_setup.exe "DetectCondition =" (Netfx4FullVersion = & amp; quot; 4.5.50709 & amp; quot;) and (not VersionNT64 or (Netfx4x64FullVersion = & amp; quot; 4.5.50709 & amp; quot;)) "InstallCondition =" (VersionNT & gt; = v6.0 or VersionNT64 & gt; = v6.0) and (not (Netfx4FullVersion = & amp; quot; 4.5.50709 & Amp; quot; or Netfx4x64FullVersion = & amp; quot; 4.5.50709 & amp; quot;)) "& gt; & Lt; ExitCode behavior = "force reboot" /> & Lt; / ExePackage & gt; & Lt; ExePackage SourceFile = "... \ ... \ Setup Files \ Encoder_en.exe" InstallCommand = "/ q" /> & Lt; ExePackage sourcefile = "... \ ... \ Setup Files \ VCRedist_x86.exe" InstallCommand = "/ q / Action = Install" RepairCommand = "/ q action = repair / hideconsole" / & gt; & Lt; ExePackage sourcefile = "... \ ... \ Setup Files \ vcredist_x64.exe" InstallCommand = "/ q / Action = Install" RepairCommand = "/ q action = repair / hideconsole" / & gt;    

"itemprop =" text ">

change

  after 

  & lt; ExitCode behavior = "force reboot" value = "1641" /> & Lt; ExitCode behavior = "force reboot" value = "3010" />   

Both 1641 and 3010 are "A restart is required to complete the installation. This message indicates success."

Your version behaves all in the same way exit code, which you saw. Look at that installer Fortunately, exit codes are documented.

UPDATE: I said that the success code and a catch was added which could be all the error if you believe all the successful code documents are there.

  & lt; ExitCode behavior = "success" value = "0" /> & Lt; ExitCode behavior = "error" />    

No comments:

Post a Comment