Menu
  • HOME
  • TAGS

Saving file to a directory when porgram installed on another computer.

c#,setup-project

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#)....

Visual Studio Setup Project not removing DLL

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...

How to share .exe file created in Visual Studio 2013 (C#)?

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...

Skip a step in Setup Project

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...

How to delay in VB Script?

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...

Does the main Nexus repository have to be named: “central”?

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...

Automatic installation of .NET framework from InnoSetup installer

.net,inno-setup,setup-project

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 InstanceTransforms element produces unresolved reference

wix,windows-installer,setup-project,msiexec,instance-transform

You need a Property element with the Id of your InstanceTranforms/@Property value.

How to Customize Visual Studio Setup

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...

What is the difference between setup project and setup wizard?

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...

How to declare virtual path in .wxs file?

wix,setup-project

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...

can't run migrations. Table doesn't exists

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...

Best practice to automatically initialize project (git + composer + bower etc.)

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...

Enterprise Library not logging in setup project

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...

Setting up SpringToolSuite with Maven/Java/GIT combo

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......

Are we still stuck with installer projects : .vdrpoj or Wix in VS2013?

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...

Start windows service on install without setup project

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)) {...

How to code for Custom Dialog in Setup Project?

.net,winforms,setup-project

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...

How to skip folder selection form when update installed application via Windows Installer setup project

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...

Skip A Dialog In Visual Studio Setup Project

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...

Setup script for Polymer Elements

python,polymer,setup-project

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...

Delphi exe setup in visual studio

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....

is it possible to create Environment variable while setup.exe is running [closed]

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...

VS2010 setup project define default installation directory to appfolder

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...

Msi installer does not add the Outlook Addin

windows-installer,outlook-addin,setup-project

VS 2012 Addin and the setup project works perfectly.

Сreate a setup file in Visual Studio 2012

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 not showing my module/project

intellij-idea,project,project-management,setup-project,intellij-13

You can go to File-> Project Structure and then define it as a Source Folder

How can I determine the prerequisites for my program to run on a new, “fresh” system?

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...

How to make secure local SQL database for C# application

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