Link to home
Start Free TrialLog in
Avatar of keyparker
keyparker

asked on

Is it possible to run a msi file from a button within a flash exe using actionscript?

Im creating as CD Rom using flash and I want there to be an option button that will launch an windows installer (msi file) that I have created. Ive looked into fscommands and using .bat  files but nothing seems to launch that installer file. Is it even possible across different operating system such a XP, Vista and 7, with flash security issues?

I would be really grateful for any help.

Regards
Jamie
Avatar of CyanBlue
CyanBlue
Flag of United States of America image

You could try using this command inside the batch file, but you will need an admin password to go further and actually install stuff on your user's computer...

CyanBlue
runas /user:administrator "msiexec /i installer.msi"

Open in new window

First question would be if you tried to do anything else with the button (ie. Call up NotePad.exe or open a command prompt), does that work?

Second item would be if you are resolving the location of your script and putting that into the command?  Say the User's CD-ROM drive is assigned letter "K", does your action call MsiExec and tell it the location of the MSI to run (Example: MsiExec /I "K:\MyApp.msi)?
ASKER CERTIFIED SOLUTION
Avatar of keyparker
keyparker

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Oh, I thought that you wanted MSI not EXE...  :)

It'd be great if you can close the topic...

CyanBlue