It's quite likely that you don't have permission to edit files at that path. You're better off saving any data in the user's application data folder var path = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); or using a resource file: MSDN - Adding and Editing Resources (Visual C#)....
c#,.net-4.0,console-application,setup-project
It seems I was able to fix this issue by renaming the solution and product name of the application, I'm not sure how this fixed it, but it did. My only thoughts here is this traversed through to the installer, where the application installed into a different folder, thus not...
c#,wpf,visual-studio-2013,installation,setup-project
There is ClickOnce deployment, which is both lean and easy to work with even if you don't have pre-existing installer experience as the in-built tooling will automatically identify dependencies for you, and easily let you adjust what is a dependency, whether or not it is included, and optionally paths for...
c#,setup-project,custom-action
It's not possible in a setup project because there is no way to alter the display of those dialogs based on conditions or settings from previous dialogs. You'd need another tool to do that kind of thing during the install. If it's related to configuring the app (and not strictly...
visual-studio-2010,vbscript,delay,setup-project,wscript
The first statement, WScript.Sleep 1000, does work. Your error must be somewhere else. Proof Create a file test.vbs on your desktop: WScript.Echo Time() WScript.Sleep 2000 WScript.Echo Time() Run as follows: C:\Users\...\Desktop>cscript test.vbs Microsoft (R) Windows Script Host Version 5.8 Copyright (C) Microsoft Corporation. All rights reserved. 11:31:34 11:31:36 Note the...
build,maven-3,setup-project,nexus
Maven 3 has a built in repository called "central" and you need to override this in your settings.xml as described in the Nexus documentation. You then combine this with a repository group of any name and use that as a mirrorOf * (including central). The repository group can contain any...
If you try to execute dotNetFx40_Full_setup.exe /q /passive /norestart manually, you get the same behavior. After some testing, I believe you cannot combine /q and /passive. It makes sense as both do the same thing little differently. Just use only one of the /q or the /passive in your code,...
wix,windows-installer,setup-project,msiexec,instance-transform
You need a Property element with the Id of your InstanceTranforms/@Property value.
c#,visual-studio,setup-project
You can use a Microsoft Setup project or WIX (easily integrate with Visual Studio). Both are free. •You can do almost all of your customization in setup project by adding custom actions. •WIX (window installer xml) is the better option. You can do a complete customization from wix but it...
visual-studio-2013,setup-project,setup-wizard
The Setup Wizard will help automate the creation of one of the project types shown in the dialog. The Setup Project option creates an installer for a Windows-based application. See http://support.microsoft.com/kb/307353...
Assuming you are already using heat to generate your components, you can specify a variable by using -var <VariableName>. According to the docs this will: Substitute File/@Source="SourceDir" with a preprocessor or a wix variable (e.g. -var var.MySource will become File/@Source="$(var.MySource)\myfile.txt" and -var wix.MySource will become File/@Source="!(wix.MySource)\myfile.txt". I use this by...
ruby-on-rails,setup-project,database-migration
Your migrations are seemingly in an inconsistent state, which is fine. Instead of rake db:create and rake db:migrate, you should simply be running rake db:setup to create the database and restore the actual authoritative state of the database from db/schema.rb. You are not supposed to be able to clone any...
git,setup-project,projects-and-solutions
Sounds like you need a script that will do this work for you. Write the script, place it in your root folder of the project and tell user to run it. Using script will make your life easier if you modify the script and its content. You simply update the...
setup-project,enterprise-library-4.1
There are at least a couple of things that can go wrong. The app is not running as it would if you ran it as an interactive user. It is being called from an msiexec.exe process that knows nothing about your intended environment, such as working directory. None of the...
git,maven,setup-project,spring-tool-suite,eclipse-luna
Try right-clicking on the project(s) in Project Explorer once it's imported and then in the context menu go to Maven -> Update Project... Make sure the bottom 3 check-boxes on the dialog are checked and press OK on the dialog. Ideally the project must be "maven refreshed" once it's imported......
visual-studio,visual-studio-2013,msbuild,installer,setup-project
Wix is the default way to go for free solutions that need to do advanced steps and must be able to integrate into Team Build and MsBuild. Product Free/Paid VS designer MsBuild Support InstallShield LE free yes yes InstallShield Pro paid yes yes InstallAware paid yes yes 3) Advanced Installer...
c#,visual-studio-2012,windows-services,setup-project,autostart
In your Installer class, add a handler for the AfterInstall event. You can then call the ServiceController in the event handler to start the service. public ServiceInstaller() { //... Installer code here this.AfterInstall += new InstallEventHandler(ServiceInstaller_AfterInstall); } void ServiceInstaller_AfterInstall(object sender, InstallEventArgs e) { using (ServiceController sc = new ServiceController(serviceInstaller.ServiceName)) {...
MS seem to have deleted the walkthroughs on how to do this when setup projects were taken out of VS. However if you look at the property window of that RadioButtons(2) dialog you'll see there's an uppercase property name, probably BUTTON2. That will be set to 0 or 1. The...
c#,windows-installer,setup-project,windows-forms-designer,custom-action
If you saved the original install location in the registry, for example by saving [TARGETDIR] in a registry item, then you can retrieve it during an upgrade. You find out you're doing an upgrade because it will set a property called PREVIOUSVERSIONSINSTALLED. The problem is that there is no way...
visual-studio-2010,visual-studio,installer,setup-project
There are no capabilities in Visual Studio setups to do this. VS setups are going away anyway after VS 2010, so you should choose an MSI-building tool that has this capability. You could in principle use Orca to manually change the MSI tables, such as the ControlEvent table, but it...
First, exclude your components with svn propset svn:ignore bower_components . (in git, this is usually a .gitignore file with a bower_components line). Then, ensure your bower.json file has the proper dependencies for all of those components. Then you can commit your code as normal. Finally, on the production server, after...
visual-studio-2010,setup-project
This still applies even though it's VS 2005 - setup projects haven't changed. https://www.simple-talk.com/dotnet/visual-studio/getting-started-with-setup-projects/ The fact that it's a delhpi exe doesn't matter. To get it installed you just use the setup project's IDE, the File System on Target Machine view and drag/drop the exe into (usually) the Applcation Folder....
c++,visual-studio-2012,deployment,installshield,setup-project
You don't describe your root problem but I can give you advice on environment variable race conditions I've had in the past. Typically I'll have my installer use standard techniques (Windows Installer Environment table which updates the registry and broadcasts a settings change) and then if still have a race...
visual-studio-2010,setup-project,setup-deployment
AppDataFolder is the current user's roaming folder, and it won't install your files to every user's roaming folder. InstallAllUsers doesn't change the fact that it's a single user's folder. Having said that, I believe that what you're doing might be normal. I think Office expects add-ins and so on to...
windows-installer,outlook-addin,setup-project
VS 2012 Addin and the setup project works perfectly.
visual-studio-2012,installer,windows-installer,installation,setup-project
Visual Studio setup projects (vdproj) are not supplied with VS 2012 There are several solutions for you: You could use InstallShield instead. If you don't want or can't use InstallShield for any reason, you could try WiX. This toolset builds Windows installation packages from XML source code. If you only...
intellij-idea,project,project-management,setup-project,intellij-13
You can go to File-> Project Structure and then define it as a Source Folder
visual-studio,setup-project,prerequisites
The short answer is that you need to identify the software your program uses that is not part of the .NET Framework. That might include Crystal Reports, some SQL components, any third party NET controls, COM components. Typically the first cut is Microsoft vs 3rd party because 3rd party software...
c#,.net,sql-server,sql-server-2008-r2,setup-project
Create in sql windows authentication to server authentication then you can add username and password then you can secure your database