installer

Rescan device tree for hardware changes during Driver installation

♀尐吖头ヾ 提交于 2020-01-02 17:35:07
问题 I'm using InstallShield to install my application, a driver and a service. I need to install the plug-N-play driver only if it's hardware ID was found in the device manager. The driver installation is done using DPInst.exe. My problem, is that a user can sometimes manually uninstall the driver (After it was installed or even uninstall the "Unknown driver" under "Other devices" ) and then I can't find the hardware ID in the device tree, although the device is plugged. If I rescan the device

Inno Setup - How to validate serial number online

旧城冷巷雨未停 提交于 2020-01-02 10:21:58
问题 Using Inno Setup, setup.exe was given to a client, according to contract he is allowed only to use 2016 and 2017. But on 01-01-2018 he should not be able to continue with same serial 2017. How to make the setup.exe by innosetup limited to from and to date? [Setup] #define SerialNumber "2017" UserInfoPage=yes [Code] function CheckSerial(Serial: String): Boolean; begin Result := Serial = '{#SerialNumber}'; end; setup.exe is executed license key is inserted after submit, i want to check URL

How can I make the msi overwrite old files?

爷,独闯天下 提交于 2020-01-02 09:11:10
问题 I have a standard Visual Studio (2008) application setup project, which generates an msi containing a few files. I noticed however that: 1) When the msi installs and some of the files already exist, it simply silently ignores these files. This is the behaviour that I don't want, because of obvious reasons. 2) When I uninstall the msi, it doesn't delete my main dll file. How can I fix these two things? Together they make it impossible to automatically upgrade my software. 回答1: I had the exact

How to genenerate Database backend during Software installation?

删除回忆录丶 提交于 2020-01-02 07:52:25
问题 I have developed a small application with SQL SERVER back end and I also make an installer for the application with Indigo Rose Setup factory 8.0. What I need is I want to automatically create the database back end with specific user account during the installation of the application. Before the installer a user is asked to install either SQL server or SQL express as prerequisite, when the database is installed the installation of the software continues. I tried to do using SQL script but I

How do I capture the results of a YESNOCANCEL MessageBox without gotos/labels in NSIS installer scripting?

时间秒杀一切 提交于 2020-01-02 05:33:16
问题 I would like to know how to use a YESNOCANCEL MessageBox in conjunction with IF logic from LogicLib.nsh in NSIS installer scripting to avoid having to use labels and gotos. Is there any way to capture the result of a MessageBox in a variable of some kind? Also, I know there are better things than NSIS out there, but using something else isn't a possibility at this point. =( Note the {WHAT GOES HERE??} in the below code. If this was just an If...Else... it would work fine. Thanks for the help

Add a summary information to WiX generated MSI

☆樱花仙子☆ 提交于 2020-01-02 04:56:22
问题 How to add (or change a default values) a summary page information to a WiX-generated MSI file? Summary page is the tab page which is visible if you right click on the MSI file in the Windows Explorer and includes following text fields: Title, Subject, Author, Category, Keywords, Comments alt text http://img151.imagevenue.com/img.php?image=13824_msi_summary_122_495lo.jpg 回答1: Further to @Stefan answer, here's a mapping of Wix items to msi details properties. have not found a way to set

Cannot create registry key value with WiX installer

六月ゝ 毕业季﹏ 提交于 2020-01-02 04:30:12
问题 The below component does everything as expected, but fails to write the last registry key value. I get no errors. <Component Id="ProgramMenuDir" Guid="68977683-3F36-45EF-9FF4-7B9461A42D06"> <RemoveFolder Id="ProgramMenuDir" On="uninstall" /> <RegistryKey Root="HKLM" Key="Software\Wow6432Node\[Manufacturer]\[ProductName]" ForceCreateOnInstall="yes" ForceDeleteOnUninstall="yes"> <RegistryValue Type="string" Name="APIUrl" Value="http://api.blah/" KeyPath="yes" /> <RegistryValue Type="string"

Bootstrapping SQL Express from WiX?

一笑奈何 提交于 2020-01-02 02:00:14
问题 I'm working on a WPF app, and using WiX as an installer. I'd like to start using SQL Express 2012, but want to resolve installer issues first. I'm looking for a full-up example of detecting, bootstrapping, installing, upgrading and uninstalling SQL Express 2012 using WiX (although partials will be useful, too). Also, most of the detection logic I've found so far on the web uses registry keys. However, Microsoft recommends using WMI instead (see http://blogs.msdn.com/b/sqlexpress/archive/2006

Bootstrapping SQL Express from WiX?

扶醉桌前 提交于 2020-01-02 02:00:02
问题 I'm working on a WPF app, and using WiX as an installer. I'd like to start using SQL Express 2012, but want to resolve installer issues first. I'm looking for a full-up example of detecting, bootstrapping, installing, upgrading and uninstalling SQL Express 2012 using WiX (although partials will be useful, too). Also, most of the detection logic I've found so far on the web uses registry keys. However, Microsoft recommends using WMI instead (see http://blogs.msdn.com/b/sqlexpress/archive/2006

Changing the computer name with Inno Setup

≯℡__Kan透↙ 提交于 2020-01-01 19:39:16
问题 Is there a way to change your computer name with Inno Setup? I'm new to Inno Setup but I searched quite alot and I haven't found any example of it. I know you can access the computer name with the constant {computername} , but it seems like there is no function to change it. I thought about changing the registry key of the computer name in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ActiveComputerName with section [Registry] , but I don't know what will happen if I use