setup-project

Specifying c:\\ProgramData folder in Setup project?

江枫思渺然 提交于 2019-11-28 21:18:14
I am using a Windows Installer deployment project in VS 2010 to create an installer for a small demo project. The demo needs to install a SQL Compact database file (MyData.sdf). The demo can't install the database to the application folder on the user's machine--I get an "access denied" error if I do that. So, the logical place to install the database would seem to be a subfolder under the user's c:\ProgramData folder. How do I specify the c:\ProgramData folder in the deployment project's File System Editor? I right-click the File System on Target Machine node and hover over Add Special Folder

Visual Studio 2010 - RemovePreviousVersions

流过昼夜 提交于 2019-11-28 20:34:48
问题 I have a Visual Studio 2010 Deployment Project with the following settings: DetectNewerInstalledVersion = True InstallAllUsers = True RemovePreviousVersions = True The project I am building has several DLLs that due to the legacy way that serialization was implemented the file versions for this project can not be incremented (which we are in the process of changing). How can I get the setup project to remove the existing files entirely (or at least overwrite with all the new files)? Maybe I

Visual C++ 2010 Runtime Libraries prerequisite keeps popping up on a VS 2010 created installer

早过忘川 提交于 2019-11-28 18:20:00
I created an installer with Visual Studio 2010 Version 10.0.40.219.1 SP1 Rel. My application is built/compiled for x86 and requires VC++ runtime libraries. Thus, the setup project is configured with VC++ runtime libraries as a prerequisite. Every time I run the installer I get the popup "The following components will be installed on your machine." "Visual C++ 2010 Runtime Libraries (x86)". The first time it gets installed asa expected. The second and subsequent times it asks me whether to repair or remove VC++ 2010. This popup should only be displayed once, the first time it is discovered that

Setting correct icon for Shortcut in VS2010 Setup Project

江枫思渺然 提交于 2019-11-28 13:18:54
I have a small app with a setup project. If I create a shortcut to my Primary Output, then this gets a standard Win7 icon and not the icon specified in my exe's Application Icon? Whats the best way to make sure my desktop shortcut icon is the same icon as my exe? e.g. If I change the exe's icon then I'd like the Setup icon to change as well. If you set the icon for the shortcut you can set a primary output as source. In the file system editor of the setup project, click on the "(Icon)" combobox in the properties pane of the shortcut, then option "(Browse...)", button "Browse...". You'll see

Why do I get “An error occurred while validating. HRESULT = '80004005'” when building a setup project?

让人想犯罪 __ 提交于 2019-11-28 08:10:25
Why do I get the following error when building a setup project? An error occurred while validating. HRESULT = '80004005' One project in solution had ToolsVersion="4.0" (in .csproj file), changed it to ToolsVersion="3.5" and setup project builds fine. Justin Pihony Both of the reasons I found are already in other answers, but they are in separate answers and not fully explained. So, hopefully this will combine the possibilities and give good means of debugging each. :) Common Reason My problem was not a dependency error. However, that does seem to be the common reason. So, basically, you need

How to add Licence agreement in the setup project

南楼画角 提交于 2019-11-28 07:28:30
I wish to add licence agreement to my setup files (using setup project) If user does not accept it, setup should be cancelled. Please advise how to do it. Thanks and best regards, Furqan You can easily add a "License Agreement" dialog to a setup project created in Visual Studio. To do this, follow these steps: With your setup project open in Visual Studio, right-click on the project in the Solution Explorer, point to "View", and click "User Interface". Right-click on the "Start" group, and select "Add Dialog" from the pop-up menu. In the "Add Dialog" dialog, click the "License Agreement" icon

Is it possible to register environment variables in Setup Wizard project?

别说谁变了你拦得住时间么 提交于 2019-11-28 07:21:37
问题 I am creating a Visual Studio 2008 Setup Wizard for my program http://support.microsoft.com/kb/307353 I see that it is possible to add registry entries, etc.. Is there a possibility to register windows environment variable without writing a custom action? And if I must write a custom action, what is the least painful way to do so? 回答1: Warning : Please do not use this approach . It is dangerous. Use built-in MSI features for environment variable update. Example : Writing straight to HKLM

How to include version number in VS Setup Project output filename

自作多情 提交于 2019-11-28 05:21:26
Is there a way to include the version number as part of the output.msi filename in a VS2008 Setup Project? I'd like for example an output file called: "myinstaller-1.0.13.msi" where the version part is automatically set based on the version number I have put in the deployment project properties. JPReddy Not sure whether you still require this or not but wanted answer this as we did similar kind of operation in the postbuild event. As far as the research I did this is not possible to set the file name as you want internally through setup process. You can do this in other way by naming the

General failure building bootstrapper

微笑、不失礼 提交于 2019-11-28 02:53:52
问题 while doing the build of my dontnet 4.0 project setup i'm getting following errors An error occurred generating a bootstrapper: Unable to finish updating resource for E:\project\Setup\Debug\setup.exe with error 8007006E E:project\Setup\Setup.vdproj Setup General failure building bootstrapper E:\project\Setup\Setup.vdproj Setup Unrecoverable build error E:\project\\Setup\Setup.vdproj Setup I am using dotnet framework 4 and MSVS 2010. 回答1: This happens because The .NET framework version

Visual Studio Setup Project conditional if File Exists

£可爱£侵袭症+ 提交于 2019-11-27 22:17:36
I have a Setup/Deployment Project for my Application and it outputs certain files (*.dll, *.dat) to the Application Folder. I would like a condition to be set to check if a file currently exists or not. If it doesn't, write it but if it does, don't install it from the package. Is it possible? The file is called "database.dat" and under the Properties, I see a "Condition" attribute, but I'm not familiar with what to put in there. Any input is greatly appreciated. Thanks in advance. Edit: Reason why it would already exist is that from a previous install there would be data from a DataSet / Data