I want to deploy my app with an wix based installer and also want it to be available in the Command line, so that I can call my app after installation just like this:
C:\> myApp "Some parameters"
I know that I can achive this by adding my installation directory to PATH, but I need a bit more.
I would like to call my app by another name, for example my app is named like
MyApp.Cli.exe
and for a few reasons I would like to keep that naming scheme in the install folder. But on the command line I would like to call my App like
C:\> MyApp
instead of
C:\> MyApp.Cli.exe
Any ideas how to achive this? Thank you a lot for any help.
App Paths: I suppose you can try
App Paths? It is an alternative to updating thePATH variable. I don't think it works via the command line, but it works in the Windows Shell - or in other words when you do Windows Key + R and type in"YourAppName"(without the quotes), then you run the right application without updating the systemsPATHvariable.Note on WiX:
App Paths, Registry: In the registry your
App Pathwould look something like this:Actual reg-file:
WiX Markup: Running
heat.exe reg MyRegExport.reg -out MyWiXFile.wxs -sfrag -suidto convert the exported*.regfile to WiX markup yields something like this (not tested, please adjust as appropriate - just a generalized idea of how to do this):Command Line: It seems it works to use the "start" command from a command line window:
But it does not work to just go
datool. Didn't test much, have a play with it?Links: