/build/static/layout/Breadcrumb_cap_w.png

Msi launch condition preventing running from C drive?

Hi there.

I am trying to set an msi launch condition preventing the execution from C drive. This is an in house msi designed to only run from a usb drive. We want to somehow prevent users from running it locally. Ideally, through the msi itself.

I presume there should be a away of setting a launch condition based on the SourceDir property. However, I am struggling finding a way to get it working. Desired outcome is that the msi cannot be ran from C:\

Any suggestions would be much appreciated.

Thank you


1 Comment   [ + ] Show comment
  • How about the condition:
    Not SOURCEDIR<<"C:\" - captain_planet 5 years ago
    • I would need to make sure it doesn’t run from any other subfolders. Would that cover it? - boyangk 5 years ago

Answers (1)

Answer Summary:
Posted by: captain_planet 5 years ago
Black Belt
1

Top Answer

It would have been quicker to test it than to respond! Ha.

Yes. << Means "starts with".

Not SOURCEDIR<<"C:\"

Comments:
  • I’ve just finished work so unable to test it. Will test it soon.
    Thanks a lot for your help :) - boyangk 5 years ago
  • Brilliant. Works like a charm. Thank you. - boyangk 5 years ago

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ