Quantcast
Channel: THWACK: Message List
Viewing all articles
Browse latest Browse all 21093

Re: How best to use Package Boot Helper to copy a file?

$
0
0
However, the .xml file is not being copied when the .msi is installed..

There are two reasons this can happen:

  1. The command is defective and thus failing.
  2. The INSTALLER is not returning the correct result codes, and the post-execution steps are not executing at all.


To test this, set the result action of the "Apply package" step to "Continue with next action if this action fails".


If your copy command then works, the defect is in not identifying all of the necessary "Success codes" for the installer.

If it doesn't work, then you'll have to assume that the command is defective.

 

 

In the Package Boot Helper, I'm attempting to run a .cmd file after installation is complete

 

This is overkill. There is no need to write a script to call a simple COPY/XCOPY/ROBOCOPY command. Plus, calling a script from PackageBoot is a bit more complex. You've not provided any information on how you've configured the script to execute, so my educated guess would be that this has not been done correctly.


The simple solution is this:

  • Create a "Run a program" task.
  • Define the Program Name as "XCOPY.EXE" or "ROBOCOPY.EXE"
  • Set the "Run program from specified directory" to %SYSTEM%
  • Set the command line parameters to %MODULEPATH%\YOURFILE.XML TheFullyQualifiedDestinationPath AnyNecessaryCommandLineParameters




Viewing all articles
Browse latest Browse all 21093

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>