Dec 08, 2016
12:00 AM
Please let me know whether this is possible through Installshield or not
... View more
Oct 12, 2016
07:19 AM
Hi , We are setting the registry value in OnResumeUIBefore() function RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE); RegDBSetKeyValueEx("SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\{#GUID#}", "Publisher", REGDB_STRING, "XYZ", -1); But still publisher name is not getting changed to XZY in control panel > programs and features, it is still showing "Ihr Firmenname" after upgrade
... View more
Aug 31, 2016
03:26 AM
Hi rguggisberg , We changed to SQLServerSelectLoginEx dialog which solved our problem, thank you for your inputs.
... View more
Sep 16, 2016
02:21 AM
Can you suggest how to check whether the package is running in fresh installation or upgrade?
... View more
May 20, 2016
09:13 AM
Hi rguggisberg, Using system search I read the value and put it in DOTNETVERSION45FULL and check the condition as you mentioned, but not able to do so. Actually we want to compare the version using installscript if no other option is there to do this, can you please suggest if there is any way to do this. In future if Microsoft launches .Net framework 5.x also we need to consider Thanks in advance
... View more
Mar 29, 2016
05:03 PM
I would try right after RemoveFiles in the 'Install Execute' sequence. You probably want to use 'Deferred Execution in System Context'. If you continue to have trouble put MessageBoxes at the start and end of your CA. Then you can look to verify that only the files you expect are in the folder when you enter the CA; that the files are gone as expected when the CA finishes; and that the new files are populated after that.
... View more
Nov 18, 2015
04:24 AM
It may be because your config file has a newer date than the one in the msi. If that is the case it will not be replaced, unless you have file versioning on your config file.
... View more
Sep 14, 2015
07:33 PM
There is also https://msdn.microsoft.com/en-us/library/97af8hh4(v=vs.110).aspx
... View more
Apr 20, 2015
02:23 PM
sureshkottakki wrote: Hi , I have created Installscript msi project, I am able to install and uninstall the setup successfully, but after successful uninstallation also, few folder or files are not getting deleted .Please help me out in this issue. Thank in advanve Just add removals for those from the Files and Folders view. But be careful not to delete any user data! Windows Installer is careful about not touching files that have a different modify time stamp (because this strongly hints that the file could be something that the user wants to keep). If the creation time stamp and the modify time stamp are identical, then Windows Installer removes the file because it's no different than what it installed to begin with (and therefore there's no chance that it contained important data that the user may want to keep.)
... View more
Apr 09, 2015
10:13 AM
I just found this code in one of my custom actions. This is a CLR project so .NET would be a requirement for this. [CODE]using System; using System.Collections.Generic; using System.Text; using System.ServiceProcess; using System.IO; namespace ModifyACServices { class Program { static void Main(string[] args) { string serviceCmd = args[0].ToUpper(); if (serviceCmd == "STOP") { StopService("AmazingChartsAdminService"); StopService("AmazingChartsService"); StopService("Amazing Charts Auth Service"); } if (serviceCmd == "START") { StartService("AmazingChartsAdminService"); StartService("AmazingChartsService"); StartService("Amazing Charts Auth Service"); } if (serviceCmd == "STOPSQL") { StopService("MSSQL$AMAZINGCHARTS"); } if (serviceCmd == "STARTSQL") { StartService("MSSQL$AMAZINGCHARTS"); } } static void StopService(string pServiceName) { if (ServiceExists(pServiceName)) { ServiceController service = new ServiceController(pServiceName); if (service.Status.Equals(ServiceControllerStatus.Running)) { try { service.Stop(); service.WaitForStatus(ServiceControllerStatus.Stopped); service.Refresh(); } catch (Exception e) { System.IO.File.WriteAllText(@"C:\Users\Public\InstallResults\ErrorReturn.txt", e.Message); //If it fails we will not worry about it for the installer } } } } static void StartService(string pServiceName) { if (ServiceExists(pServiceName)) { ServiceController service = new ServiceController(pServiceName); if (service.Status.Equals(ServiceControllerStatus.StopPending)) { service.WaitForStatus(ServiceControllerStatus.Stopped); service.Refresh(); } if (service.Status.Equals(ServiceControllerStatus.Stopped)) { try { service.Start(); service.WaitForStatus(ServiceControllerStatus.Running); service.Refresh(); } catch { //Sometimes the service will just not start for some reason due to installation errors, but do not want install to hang so inserting try catch } } } } static bool ServiceExists(string pServiceName) { try { ServiceController[] scServices; scServices = ServiceController.GetServices(); foreach (ServiceController scTemp in scServices) { if (scTemp.ServiceName == pServiceName) { return true; } } } catch (Exception e) { System.IO.File.WriteAllText(@"C:\Users\Public\InstallResults\ErrorReturn.txt", e.Message); } return false; } } } [/CODE] To implement this you would build your C# custom action. Add the EXE to your suite project as an event file. Add the Argument STOP | START | etc This implementation will allow the suite to stop services for uninstall, or patching, etc. And then after the update, install is complete, then start services.
... View more
Apr 15, 2015
05:16 AM
Hi rrinblue22/Hysteresis, I tried out to call the dll function which will stop the service in ONBEGIN function, now it is working fine , the Reboot dialog is not coming , Thanks for your help and your valuable time.
... View more
Apr 03, 2015
06:28 AM
Thanks a lot MichaelU, It is working fine,I made Install option to yes in LicenseAgreement dialog , even made changes to enable and disable the install button on selection of the radio buttons.
... View more
Latest posts by sureshkottakki
Subject | Views | Posted |
---|---|---|
575 | Dec 08, 2016 12:00 AM | |
1482 | Dec 07, 2016 07:13 AM | |
891 | Oct 12, 2016 07:19 AM | |
2232 | Oct 07, 2016 02:13 AM | |
1310 | Sep 16, 2016 02:21 AM | |
621 | Aug 31, 2016 03:26 AM | |
1759 | Aug 26, 2016 08:46 AM | |
1759 | Aug 12, 2016 06:10 AM | |
1759 | Aug 04, 2016 01:54 AM | |
1310 | Aug 02, 2016 09:55 AM |
Activity Feed
- Posted Re: Import .bas macro to word using Installshield on InstallShield Forum. Dec 08, 2016 12:00 AM
- Posted Import .bas macro to word using Installshield on InstallShield Forum. Dec 07, 2016 07:13 AM
- Posted Re: Publisher name in Installscript MSI project on InstallShield Forum. Oct 12, 2016 07:19 AM
- Posted Publisher name in Installscript MSI project on InstallShield Forum. Oct 07, 2016 02:13 AM
- Posted Re: Run Suite installer in Silent mode on InstallShield Forum. Sep 16, 2016 02:21 AM
- Posted Re: Two SQL Dialogs on InstallShield Forum. Aug 31, 2016 03:26 AM
- Posted Re: Two SQL Dialogs on InstallShield Forum. Aug 26, 2016 08:46 AM
- Posted Re: Two SQL Dialogs on InstallShield Forum. Aug 12, 2016 06:10 AM
- Posted Re: Two SQL Dialogs on InstallShield Forum. Aug 04, 2016 01:54 AM
- Posted Re: Run Suite installer in Silent mode on InstallShield Forum. Aug 02, 2016 09:55 AM
- Posted Re: Two SQL Dialogs on InstallShield Forum. Aug 02, 2016 03:19 AM
- Posted Two SQL Dialogs on InstallShield Forum. Aug 01, 2016 09:27 AM
- Posted Re: Run Suite installer in Silent mode on InstallShield Forum. Jul 28, 2016 08:54 AM
- Posted Re: Run Suite installer in Silent mode on InstallShield Forum. Jul 26, 2016 03:52 AM
- Posted Re: Run Suite installer in Silent mode on InstallShield Forum. Jul 25, 2016 07:22 AM
- Posted Re: Run Suite installer in Silent mode on InstallShield Forum. Jul 22, 2016 07:24 AM
- Posted Re: Run Suite installer in Silent mode on InstallShield Forum. Jul 19, 2016 04:26 AM
- Posted Run Suite installer in Silent mode on InstallShield Forum. Jul 13, 2016 08:55 AM
- Posted Re: Compare .Net Framework version in InstallScript MSI projects on InstallShield Forum. May 20, 2016 09:13 AM
- Posted Re: Compare .Net Framework version in InstallScript MSI projects on InstallShield Forum. May 18, 2016 08:47 AM