Auto-execute not working

AJ

I’ve followed instructions as per https://soti.net/mc/help/v2025.1/en/packagestudio/packagestudioindex.html to build a Windows desktop classic package.

The package contains a .MSI, .MST and other supportive files. I have a .CMD file that calls MSIEXEC to install the applications.

When I run the .CMD manually the application installs, as expected.

However, packaging and then assigning the package to a profile in Mobicontrol only copies entire contents to destination folder. The .CMD doesn’t run to perform the installation.

I’ve ensured .CMD is set to a auto-execute as per https://soti.net/mc/help/v2025.1/en/packagestudio/packages/configure_file_setting.html

This behaviour is consistent over multiple devices.

Any help will be appreciated.   

2 months ago
Windows
ANSWERS
RS
Rafael Schäfer
2 months ago

Are you sure it's not running at all and not just "crashing" or so?
Did you add some kind of logging to an external file to see maybe at least if the file itself was executed but maybe stopped before doing anything?

 

AJ
Animesh Joshi
2 months ago

hi Rafael, thanks for your response. 

I'm certain it's not running because, the .CMD which calls MSIEXEC has a /lv switch to create a .log file. 

This log file doesn't get created. When I manually run the same .CMD on many devices, application installs and .log is created. 

EG
Edgar Gomez
a month ago

Did you try to run the .CMD file in the post-install script?

Something like:

start file.CMD

AJ
Animesh Joshi
a month ago

@Edgar Gomez

Yes I tried that. Same outcome, unfortunately. Package contents copy to the destination. 

Post-install script doesn't copy and/or run.