4

I am using visual studio setup project extension for build setup package for my application. I have removed the Install Location Select Interface and instead application should be installed to the location i have preset. At the moment application install location is set by Right-click on Application Folder in File system UI and set the DefaultLocation value as [ProgramFilesFolder][Manufacturer]\[ProductName]. It is installing to ProgramFiles(X86) folder.

I want to install the application inside C:\Windows\SysWOW64 folder. Is there anyone who knows how to set this folder structure as a default value.

Dehan Wjiesekara
  • 3,152
  • 3
  • 32
  • 46

1 Answers1

9

In a Visual Studio Setup project, you control the default install path by setting the DefaultLocation property of the Application Folder folder, within the File System Editor.

This, in turn, as you've found, defaults to [ProgramFilesFolder][Manufacturer][ProductName]. You can either replace this property entirely (you should keep [ProgramFilesFolder], at the very least though), or you can modify these properties.

[ProgramFilesFolder] is built in, and correctly leads to the Program Files directory on the target machine, no matter how customized the setup of Window is. The other two properties are properties of the setup project (select the Setup project in Solution Explorer, and examine the properties grid to find them). These default to the company name you supplied when installing Visual Studio, and the name of the Setup project.

Mohammadreza Khatami
  • 1,444
  • 2
  • 13
  • 27
  • I need to install my application to the location `C:\Windows\SysWOW64` not inside `programfiles` – Dehan Wjiesekara Apr 28 '16 at 09:34
  • You might try [WindowsVolume][SysWOW64], but I'm not sure it will work. Here's the documentation for the standard installer properties. http://msdn.microsoft.com/en-us/library/windows/desktop/aa370905(v=vs.85).aspx#system_folder_properties – Mohammadreza Khatami Apr 28 '16 at 09:36
  • as doc said , [WindowsVolume][WindowsFolder][SysWOW64] is equal to c:\windows\SysWOW64 – Mohammadreza Khatami Apr 28 '16 at 09:43
  • 1
    Thank You for the Information and reference link you provided. I have go through the documentation and found the correct answer. It should be like this `[SystemFolder][Manufacturer]\[ProductName]` – Dehan Wjiesekara Apr 28 '16 at 10:02