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

Posted on 2009-12-16
Last Modified: 2013-11-14
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.

Question by:keyparker
    LVL 37

    Expert Comment

    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...

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

    Open in new window

    LVL 8

    Expert Comment

    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)?

    Accepted Solution

    Hi CyanBlue and Mirfster

    Thanks for your quick replies.

    I have solved the problem in the end. I used a bat file to enable windows to pop up a windows explorer window with the exe in it. Then all the user would have to do is click on the exe to install.

    This seems to be stable across different windows operating systems so it think its the best solution for this project.

    Thanks for your time and thoughts

    LVL 37

    Expert Comment

    Oh, I thought that you wanted MSI not EXE...  :)

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


    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
    Among others, I monitor the Windows Installer zone and Installer zone. I find that many of the questions could be answered much more quickly if a Windows Installer verbose log were submitted with the question.   However, I do not always have t…
    The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
    The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now