Silently install app on windows classic

Solved
AW
Adam Williams
Panasonic Manufacturing UK Ltd - CPE

Hi,

I have a device which is enrolled as Windows Classic running windows 10, I want to install an application however I have created an app policy (Windows Modern) whos app source is Windows Classic and uploaded the msi.

However, when I assign the policy to the device group, I don't see the target device. I assume this is due to a mismatch in family e.g. Device (Windows Classic) vs App Policy (Windows Modern).

There isnt an app policy for windows class that I have found, so how should I go about this? I am triailing packaging the msi with a post install script "msiexec /i "path to msi" /qn" but this isnt working at the moment.

Thanks 
Adam

a year ago
SOTI MobiControl
ANSWERS
RC
Raymond Chan Diamond Contributor
a year ago

Windows 10 devices should be enrolled to Windows Modern device platform to ensure a much rich set of MDM features available on such device. WNS should also be properly set up on  MobiiControl server to support a more responsive control/management flow.

I haven't worked on Windows Classic devices with MobiControl for quite a long time.  If I remember correctly, there are only authentication, lockdown-down menu and a very small set of feature-control policies, though there are script commands that  might be used to support some special or advanced control. 

.pcg package containing the app binary and post-install script can be created for deployment to the device.  

Also, you can use file-sync rule/policy to have app binary deployed to the device, and have post-script associated with the file-sync rule to initiate installation operation.  I believe the  MC post-install script should call command shell to execute a another script file containing the "msiexec" command  you  mentioned.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 s

AW
Adam Williams
a year ago

Hi Raymond,

Thanks for the reply, yes I agree, unfortunately the customer has already enrolled the devices as Classic and just want an app installed. Thank you for the pointers and I have found other older discussion topics which give some help in running powershell scripts on the device, so will try with that.

Thanks 
Adam 

3
3sly
a year ago

Hey Adam,

I also struggled a bit with this. The file sync Raymond suggests works, but is kind of a bigger hassle.
The best thing I would suggest is using the mobicontrol package studio (pcg package Raymond mentions) to create a package with platform Windows Desktop.
In it you add your msi file. This package would then copy the file to the device. You can use the file properties autoexecute function. 
This function usually isn't quite supported for msi and requires some testing especially when you have spaces in your folders.

If you are having issues this way, you can also try installing it with a postinstall script. Make sure to mention the full path of the file location.
Something you have to watch out for is that you have to define the full path of msiexec.exe.
Below a the command that I got working for an application with the autoexecute function.
C:\WINDOWS\system32\msiexec.exe /i %file% ALLUSERS=1 /qn

Then you make a profile, add the package to it, and assign to your computer.
The error handling is something i havent been able to try much yet but could be possible with stdout.
To uninstall you have to make sure you use a pre-uninstall script. 
I have not been able to make it work with the file uninstall property.

Let me know if you got it working.

Some info:

https://soti.net/mc/help/v2024.1/en/packagestudio/packagestudioindex.html

https://soti.net/mc/help/v2024.1/en/scriptcmds/scriptcmdsindex.html

btw looked into the powershell option as well.

It is impossible to run powershell script on windows desktop classic completely silent. You can make it startup minimized but you will always see a 1sec popup. 

Solution
AW
Adam Williams
a year ago

Hi 3sly,

Really great information, thank you very much.

I will let you know how I get on

Thanks 
Adam 

T
TLMOD@SOTI
a year ago

Hi Adam ,


Thanks for posting on SOTI pulse. Thanks Raymond and 3sly for responding to the post, your expertise and willingness to help are greatly appreciated!


Has your query been resolved? If not, or if you have any additional concerns, please don't hesitate to reach out. We are dedicated to providing assistance and support.


Also, if this post has helped you in solving your query, I would request you to mark the particular comment as "is solution", so that others may benefit from this information.


Kind Regards,

C
CKMOD@SOTI
a year ago

Hi Adam,

Thanks for posting on SOTI Pulse.
Thank you, Raymond Chan and 3sly, for responding to the post, your expertise and willingness to help are greatly appreciated.
We are glad to know that your issue has been resolved. If you have any additional questions or concerns, please don't hesitate to reach out. We're dedicated to providing assistance and support.