Ezweb
Ezweb

Reputation: 228

Can Wix ProgId set the working directory?

I have the following snippet in my wix file. I need the working directory to be set, but it doesn't appear the ProgId supports this. The Shortcut element has a WorkingDirectory attribute, but it appears that ProgId doesn't support it. Is there another way to set the working directory?

  <Component>
    <File Source="program.exe" KeyPath="yes" />
    <ProgId Id="Program" Description="Program" Icon="icon.ico" IconIndex="0" Advertise="yes">
      <Extension Id="myfile" Advertise="yes">
        <Verb Id="open" Command="&amp;Open" Argument="&quot;%1&quot;" Sequence="1" />
      </Extension>
    </ProgId>
  </Component>

Upvotes: 1

Views: 445

Answers (1)

Bob Arnson
Bob Arnson

Reputation: 21886

No, because Windows Installer doesn't support it. Nor does Windows -- the handler must support running from any directory.

Upvotes: 3

Related Questions