Aug 30, 2022
11:07 AM
I have an existing Visual Studio solution (sln) with many projects and few Visual Studio Installer projects, I have replaced the VS Installer projects with the same number of InstallShield projects from within Visual Studio. The components are mostly build outputs (from asp.net projects) and few files (eg. web.config). We use MSBuild scripts for our projects. Building the solution will build the the InstallShield projects also, for that I can use something like that in my MSBuild scripts:
<MSBuild Projects="[Path\MySolution.sln]" Properties="Configuration=Release;Platform=Any CPU" Targets="Build" />
Within MSBuild scripts if I have to build a standalone ISM that uses previously built files and set the ProductVersion I will use something like this:
<InstallShield.Tasks.InstallShield Condition="'$(Patch)'!='' And '$(Patch)'!='0'" Project="$(InstallFolder)\MyProject.ism" ProductConfiguration="Package" ReleaseConfiguration="MSI" PropertyOverrides="@(InstallShieldPropertyOverrides)" ProductVersion="$(Major).$(Minor).$(Revision).$(Patch)" />
What can I do in my VS Solution with InstallShield projects to build the solution and set the ProductVersion of each of the InstallShield Installer projects? In an old forum post Setting ProductVersion on an InstallScript project from MSBuild. that mentioned something about InstallShield Automation project , is that still the way to go? I have no issue to write a C# exe for MSBuild to call with command line params (version numbers) to set the versions of those ISM, but much prefer if it can be done within MSBuild scripts.
Thanks in advance.
... View more
Labels
- Labels:
-
InstallShield 2021
Nov 25, 2021
07:00 PM
Deliberately getting couple of executables of my application running and try to install a newer version. FileInUse dialog comes up as expected but only showing 1 of the items (the Windows Service) and not the desktop application. I have checked this registry key as suggested by other posts: HKEY_CURRENT_USER\Software\Microsoft\RestartManager\Session0000\RegFiles0000 It listed the following files, all are part of my application installed. Only the 2nd last item "EBusinessService.exe" shows up in FileInUse dialog. I expect the "BisTrack.exe" to show up also but it doesn't. If I pick automatic close the applications will be close, but the user installing deserves to see what getting shut down. C:\Program Files (x86)\Progressive Solutions\BisTrack\BisTrackFullSupport.dll C:\Program Files (x86)\Progressive Solutions\BisTrack\EBusinessLib.dll C:\Program Files (x86)\Progressive Solutions\BisTrack\Enumerations.dll C:\Program Files (x86)\Progressive Solutions\BisTrack\Epicor.BisTrack.CRE.dll C:\Program Files (x86)\Progressive Solutions\BisTrack\Epicor.BisTrack.Security.dll C:\Program Files (x86)\Progressive Solutions\BisTrack\EpicorBisTrackSingleSignOn.dll C:\Program Files (x86)\Progressive Solutions\BisTrack\Epicor_BisTrack_CTI.dll C:\Program Files (x86)\Progressive Solutions\BisTrack\PSI.BisTrack.Data.BusinessIntelligence.dll C:\Program Files (x86)\Progressive Solutions\BisTrack\PSI.BisTrack.Data.Core.Objects.dll C:\Program Files (x86)\Progressive Solutions\BisTrack\PSI.BisTrack.Data.dll C:\Program Files (x86)\Progressive Solutions\BisTrack\PSIBisTrackDataAccess.dll C:\Program Files (x86)\Progressive Solutions\BisTrack\PSIBisTrackUI_55.dll C:\Program Files (x86)\Progressive Solutions\BisTrack\UpgradeHelpers.DB.ADO.dll C:\Program Files (x86)\Progressive Solutions\BisTrack\UpgradeHelpers.DB.Essentials.dll C:\Program Files (x86)\Progressive Solutions\BisTrack\UpgradeHelpers.Gui.dll C:\Program Files (x86)\Progressive Solutions\BisTrack\UpgradeHelpers.NotUpgradeHelper.dll C:\Program Files (x86)\Progressive Solutions\BisTrack\UpgradeHelpers.Utils.ReflectionHelper.dll C:\Program Files (x86)\Progressive Solutions\BisTrack\UpgradeHelpers.Utils.dll C:\Program Files (x86)\Progressive Solutions\BisTrack\disAccounts.dll C:\Program Files (x86)\Progressive Solutions\BisTrack\disBusinessIntelligence.dll C:\Program Files (x86)\Progressive Solutions\BisTrack\disCore.dll C:\Program Files (x86)\Progressive Solutions\BisTrack\disCore2.dll C:\Program Files (x86)\Progressive Solutions\BisTrack\disCoreServices.dll C:\Program Files (x86)\Progressive Solutions\BisTrack\disDataServices.dll C:\Program Files (x86)\Progressive Solutions\BisTrack\disDocumentForms.dll C:\Program Files (x86)\Progressive Solutions\BisTrack\disFormDesigner.dll C:\Program Files (x86)\Progressive Solutions\BisTrack\disForms.dll C:\Program Files (x86)\Progressive Solutions\BisTrack\disGlobals.dll C:\Program Files (x86)\Progressive Solutions\BisTrack\disInterface.dll C:\Program Files (x86)\Progressive Solutions\BisTrack\disReportServer2.dll C:\Program Files (x86)\Progressive Solutions\BisTrack\disSetup.dll C:\Program Files (x86)\Progressive Solutions\BisTrack\disUmbrella.dll C:\Program Files (x86)\Progressive Solutions\BisTrack\disUmbrella2.dll C:\Program Files (x86)\Progressive Solutions\BisTrack\disUserDef.dll C:\Program Files (x86)\Progressive Solutions\BisTrack\disViewProfiles.dll C:\Program Files (x86)\Progressive Solutions\BisTrack\psiCommon.dll C:\Program Files (x86)\Progressive Solutions\BisTrack\psiError.dll C:\Program Files (x86)\Progressive Solutions\BisTrack\saCommon.dll C:\Program Files (x86)\Progressive Solutions\BisTrack\EBusinessService.exe C:\Program Files (x86)\Progressive Solutions\BisTrack\BisTrack.exe What could has gone wrong?
... View more
Labels
- Labels:
-
InstallShield 2021
Feb 16, 2021
11:08 AM
Thanks for your help so far. Selecting the 1st option is what I have been doing all along. The 2nd option will lead to a message box being displayed and the installation stopped if SQL Server is missing. I tried the outcome of 2nd option earlier. Just in case I have missed something. I do it again and follow the help library article to the letter and make sure I select the 1st option in "Additional Options" area. Then for the component "SQLFound" I set condition to NOT SQLSERVERFOUND="". For the component "SQLNotFound" I set the condition to SQLSERVERFOUND="". The outcome is the same, always the file under component "SQLNotFound" got installed. If you have an ism that works and you can send it over as attachment. I will gladly try it out in case I miss something.
... View more
Feb 12, 2021
12:49 PM
Saw this online. You can't do directly now. But, if it is XML format, change the value of SchemaVersion using notepad, let's say 783 is for 2020 R2 and for 2016 it is 777. If it is binary format then change the extension to msi and open with orca and change the value and rename the extension back to ism I think I should be able to open an older version ism. Thanks in advance.
... View more
Feb 12, 2021
09:16 AM
What do you mean? I can see the "BasicTest.ism" and test download it and open it in notepad fine.
... View more
Feb 12, 2021
08:56 AM
Here is my test project ism in XML format in case you need to see what I am trying to do.
... View more
Feb 11, 2021
01:28 PM
Added via Property Manager the property. No difference. Files attached. Just search for "sqlserverfound".
... View more
Feb 11, 2021
12:36 PM
I did the logging on both of my test environments. Attached are the log files.
... View more
Feb 11, 2021
11:05 AM
I thought initially that it is working but proves to be wrong. Let me go deeper in how my test Basic MSI project is setup. Feature1 - 1st Component "SQLFound" - a file called SQLFound.txt - 2nd Component "SQLNotFound" - a file called SQLNotFound.txt I use the System Search wizard just like the article said but choose to store the property instead. Whether I add the property to thru the Property Manager or not doesn't make any difference. I try what you suggested: "NOT SQLSERVERFOUND="" " and "SQLSERVERFOUND="" ". The outcome is whichever component that have the condition set to " SQLSERVERFOUND="" " will get installed. My test environments: Machine 1: my dev laptop has no " Install edInstances " value under Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server as I have no SQL Server on it. Machine 2: a QA server that has all kinds of SQLExpress entries in " Install edInstances ". So I do expect the MSI property get set to something other than empty string. If the CONDITION is working properly I expect Machine1 to get the SQLNotFound file all the time and Machine2 will get the SQLFound file all the time. How can I make that happen with MSI System Search?
... View more
Feb 10, 2021
09:13 PM
Copy and Paste this to your browser. Add http: slash slash in front of it. Something in the forum butchered the link. docs.revenera.com/installshield24helplib/installshield24helplib.htm#helplibrary/ISQLServerSide.htm?Highlight=install%20condition
... View more
Feb 10, 2021
02:04 PM
I have searched the forum, there are answers but nothing ever worked properly for what I need to do. I am using a Basic MSI project. I need to find out whether target computer of my installation has SQL Server installed on it. The following link from Installshield documentation show me how to find it. https://docs.revenera.com/installshield24helplib/installshield24helplib.htm#helplibrary/ISQLServerSide.htm?Highlight=install%20condition However I DO NOT want the installation to stop if SQL Server not installed. That is how the documentation showed and that part works for sure. I need to store the property for later use. During the installation I want to determine which Components will installed based on whether SQL Server is present on target computer or not. How do I use the property " SQLSERVERFOUND " (based on the link above) in the Condition of those component. I have tried things like " SQLSERVERFOUND ", "NOT SQLSERVERFOUND ", " SQLSERVERFOUND <> "" ", etc. in my test install but nothing works. I have 2 test machines, 1 without SQL Server and the other one has SQL Server. It seems I always get the component for "No SQL Server" installed after. So what conditions do I need to set to achieve this?
... View more
Labels
- Labels:
-
InstallShield
Latest posts by HLoEpicor
Subject | Views | Posted |
---|---|---|
181 | Aug 30, 2022 11:07 AM | |
143 | Nov 25, 2021 07:00 PM | |
2741 | Feb 16, 2021 11:08 AM | |
2775 | Feb 12, 2021 12:49 PM | |
2795 | Feb 12, 2021 09:16 AM | |
3221 | Feb 12, 2021 08:56 AM | |
3254 | Feb 11, 2021 01:28 PM | |
3269 | Feb 11, 2021 12:36 PM | |
3284 | Feb 11, 2021 11:05 AM | |
3301 | Feb 10, 2021 09:13 PM |
Activity Feed
- Posted MSBuild change ProductVersion for a Visual Studio sln with multiple ISM files on InstallShield Forum. Aug 30, 2022 11:07 AM
- Posted FileInUse dialog not showing everything on InstallShield Forum. Nov 25, 2021 07:00 PM
- Posted Re: System Search results to determine what components get installed on InstallShield Forum. Feb 16, 2021 11:08 AM
- Posted Re: System Search results to determine what components get installed on InstallShield Forum. Feb 12, 2021 12:49 PM
- Posted Re: System Search results to determine what components get installed on InstallShield Forum. Feb 12, 2021 09:16 AM
- Posted Re: System Search results to determine what components get installed on InstallShield Forum. Feb 12, 2021 08:56 AM
- Posted Re: System Search results to determine what components get installed on InstallShield Forum. Feb 11, 2021 01:28 PM
- Posted Re: System Search results to determine what components get installed on InstallShield Forum. Feb 11, 2021 12:36 PM
- Posted Re: System Search results to determine what components get installed on InstallShield Forum. Feb 11, 2021 11:05 AM
- Posted Re: System Search results to determine what components get installed on InstallShield Forum. Feb 10, 2021 09:13 PM
- Posted System Search results to determine what components get installed on InstallShield Forum. Feb 10, 2021 02:04 PM