Is there a way to redirect INSTALLDIR to another directory?

cmnunis

is there a way to point the INSTALLDIR to another folder instead of C:\Program Files?

I have created a WIX installer for our MS-Outlook Add-In and I would like to have the VSTO installed in C:\ProgramData\MyCompany\MyCompanySoftwareProduct.

Is there a way to do this? I am currently using a WIXUI Installer and it defaults to C:\Program Files.

Thank you very much in advance.

Marlos

Yes, use the following:

<Product ...>
    <Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" />
</Product>

<Fragment>
    <Directory Id="TARGETDIR" Name="SourceDir">
        <Directory Id="CommonAppDataFolder">
            <Directory Id="YourCompanyFolder" Name="YourCompany">
                <!-- other nested directories -->
            </Directory>
        </Directory>
    </Directory>
</Fragment>

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Redirect any directory to another directory

codeigniter redirect to another directory view

Redirect a content of the directory to another directory in parent folder

Redirect only root directory to another site

Redirect to another directory if url match pattern htaccess

Redirect a directory in a forwarded domain to another url with htaccess

Redirect to frontend in directory or API in another directory using .htaccess

Dynamic way for redirect activity to another activity - android?

There is a better way to redirect from a url to another in ReactJS?

How to redirect all the files in root only to another directory?

Htaccess Redirect directory to another but allow the main folder URL to stay the same

How to redirect a request into another server with virtual directory specifc?

Redirect sed file to a another directory under a new name

Redirect opening requests about a file in a given directory to another file in another directory

Is there a way to redirect to another route after res.json() in express?

In vertx, Is there a way I can just change header and redirect to another server

.htaccess correct way to redirect from one Wordpress instance to another?

Is there a way to redirect from one plugin to another plugin in Extbase?

When moving a directory into another directory, is there a simple way to generate a failure when the target directory doesn't exist?

Is there any way to copy a directory to another path using guava library?

htaccess - redirect directory but not sub directory

htaccess redirect directory but not files in directory

How to search the file content in a directory for a certain pattern then return (redirect) the filename to another file?

.htaccess - Redirect all traffic to another site apart from requests within a directory, also add WWW

Redirect to another page server-side in the app directory of Next.js

Is there a way to keep a backup of only the modified files in a directory (when being compared to another directory)?

htaccess - redirect rule on directory

Redirect directory to file .htaccess

.htaccess: redirect to sub directory