how to include a readme file inside MSIPublish folder

Add-in Express™ Support Service
That's what is more important than anything else

how to include a readme file inside MSIPublish folder
 
Ming Chao




Posts: 30
Joined: 2019-01-23
hi

my firm has been using adxpublisher.exe to publish the installer in command line and the installer build from a WIX project. now we would like to include a readme.txt file along with the installer without manual intervention. i have been looking at the documents but couldn't find any related topics. what would be the best practice to do it when using ADX publisher?
Posted 28 May, 2019 09:17:46 Top
Andrei Smolin


Add-in Express team


Posts: 18817
Joined: 2006-05-11
Hello Ming,

Without manual intervention? Sorry? You need to modify a WiX project to add a file to it. You can find a WiX manual describing deploying a file and modify the WiX project accordingly.


Andrei Smolin
Add-in Express Team Leader
Posted 29 May, 2019 05:13:52 Top
Ming Chao




Posts: 30
Joined: 2019-01-23
thank you for your reply Andrei.

seems Wix project could add installation files but not release files. could you please elaborate if i'm wrong? ideally, i want both the installer(msi) and the readme.txt file to be inside bin/Debug or bin/Release after the build. i've defined a copy command in post-build event to copy the readme file to build output folder in my Wix project.

so, when publishing using adxpublisher, i would like the readme.txt copied inside MSIPublish\1033\{my_app_version} along with the msi and exe generated by adxpublisher. i could use a copy command with a hard coded path(trying to avoid) as a workaround. i guess i'm asking is there a configurable way to do it in Wix project or adxpublisher?
Posted 29 May, 2019 19:05:02 Top
Andrei Smolin


Add-in Express team


Posts: 18817
Joined: 2006-05-11
Hello Ming,

"installation files but not release files"? Sorry? I don't understand these terms.

In Visual Studio, you can right-click a WiX project, choose Properties, switch to the Build Events tab and create a command line copying a file to a location. See also https://wixtoolset.org/documentation/manual/v3/votive/votive_property_pages.html and http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Copy-output-MSI-file-from-bin-location-to-other-location-td7595081.html.


Andrei Smolin
Add-in Express Team Leader
Posted 30 May, 2019 04:23:10 Top
Ming Chao




Posts: 30
Joined: 2019-01-23
Hi Andrei,

basically i wanted to include a text file to MSIPublish\1033\{app_version} after running the command below without doing it manually(copy&paste). is there a way i could include additional files to the output folder?

adxpublisher.exe /OutputType=ClickTwice /ConfigFile="adxpublisher.Debug.exe.config"
Posted 30 May, 2019 09:47:44 Top
Andrei Smolin


Add-in Express team


Posts: 18817
Joined: 2006-05-11
Hello Ming,

Ming Chao writes:
include a text file to MSIPublish\1033\{app_version} after running the command below


You can create a .BAT file executing that command first and executing 'copy' after that.

Is this what you were looking for?


Andrei Smolin
Add-in Express Team Leader
Posted 31 May, 2019 02:33:03 Top
Ming Chao




Posts: 30
Joined: 2019-01-23
Hi Andrei,

i see. i thought there's a configurable way than using a bat file. i guess that would be the best way to do it. thank you.
Posted 31 May, 2019 07:55:16 Top
Andrei Smolin


Add-in Express team


Posts: 18817
Joined: 2006-05-11
Welcome!


Andrei Smolin
Add-in Express Team Leader
Posted 31 May, 2019 08:23:16 Top