Jump to content
Sign in to follow this  

Help with using FolderPath

Recommended Posts


Hi again.

I need to execute following command:

msiexec /p MAINSP3.msp /a E:\Office\PRO11.msi SHORTFILENAMES=TRUE /qb

msiexec /p OWC11SP3.msp /a E:\Office\OWC11.MSI SHORTFILENAMES=TRUE /qb

But I need to replace path E:\Office with user input. Can you help me to work this out?

Also it would be nice to give me example how to execute command above with path from user input?

Thank you in advance for help!

Cheers :)

Share this post

Link to post
Share on other sites

$path=InputBox("","Enter Office path")
Run("msiexec /p OWC11SP3.msp /a "&$path&"\OWC11.MSI SHORTFILENAMES=TRUE /qb")


#include <GUIConstants.au3>
GUICreate("", 264, 111, 209, 119)
$Input=GUICtrlCreateInput("", 8, 32, 129, 21)
$Button1 = GUICtrlCreateButton("Browse", 160, 32, 97, 25, 0)
GUICtrlCreateLabel("Browse to your office folder", 8, 8, 132, 17)
$Button2 = GUICtrlCreateButton("Run", 176, 80, 81, 25, 0)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
        Case $Button1
            $folder=FileSelectFolder("Select Office folder",@HomeDrive)
            If not @error Then
        Case $Button2 
            Run("msiexec /p OWC11SP3.msp /a "&$path&"\OWC11.MSI SHORTFILENAMES=TRUE /qb")

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.