This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
conorhoran
Level 4
- Revenera Community
- :
- About conorhoran
Jul 01, 2024
04:43 AM
Hi, I don't believe I did but the solution we were installing changed completely in the end so the installer I was writing at the time was abandoned. Reading through it again it looks like the key piece was to get the installscript code working but I am not knowledgeable enough to debug that. Might be as easy to call an external process to retrieve the new environment variable and feed it back to the specific installer that is looking for it but I'm not sure why I didn't do that at the time. If you are stuck with a similar problem I would try that but the forum here is not helpful for all issues we have unfortunately. Maybe support would provide something if contacted directly
... View more
Oct 08, 2021
05:55 AM
Hi, We purchased a 2021 Premier subscription on the premise that we could build directly from the pipeline in Azure. It appears that in order to avail of this we need to have a licensing server. The CLS license is not available as we have a node-locked instance of 2021 but when I attempt to set up the traditional licensing server to allow us to build using the Azure DevOps pipeline task then I also cannot see it listed as an entitlement on our account. How do you build from Azure DevOps without having either of these available to you? Thanks, Conor
... View more
Labels
- Labels:
-
InstallShield 2021
Sep 29, 2021
07:32 AM
Hi @ccrowtheroo , I think I had same issue and I had to uninstall all InstallShield extensions in Azure DevOps and re-install from the link above and I had 2021 listed in my dropdown. This was despite the extension itself updating recently at start of month to 1.0.48 so could be some bug in azure marketplace? Good luck,
... View more
Sep 28, 2021
05:35 PM
Hi, We have recently purchased a 2021 Premier license to avail of the CLS for our Azure DevOps integration. On the Product and Licensing Centre there does not appear to be any CLS set up. Does anyone know how can I set this up myself or should it be readily available with our subscription? InstallShield Azure DevOps Build Extension Thanks, Conor
... View more
Labels
- Labels:
-
InstallShield 2021
Sep 28, 2021
05:22 PM
1 Kudo
Hi, I'm not sure if you solved this already but I believe that when using your 2020 license that you need to configure a licensing server and make it accessible to your pipeline. It would mean you either host your licensing server online and make it accessible on the external web or the more common configuration is to install a Microsoft Azure DevOps agent on your local InstallShield 2020 PC with the licensing server installed locally and add this to your agent pool. I have not done either as we are currently trying to configure CLS with 2021 Premier which allows you to use a licensing server hosted by Flexera and then use the hosted build agents to look to this during the pipeline build. It is less maintenance but at a much higher price with the new subscription based model Revenera have introduced. It does removes the licensing cost of having a self-hosted agent in Azure DevOps though for this specific task. Good luck. Regards, Conor
... View more
Feb 02, 2021
03:52 PM
Hi, I have a Suite installer that installs 3 packages and runs two powershell scripts as events. The order is somewhat like, Powershell Event - Set Firewall Rules (working) Install Python (working) Install Erlang (working) Install RabbitMQ (working) Powershell Event - Configure RabbitMQ (not working) After a few days on this I have determined that the issue is when I call the final script (OnPackagesConfigured) that it cannot load the newly created ERLANG_HOME environment variable installed during the Erlang package install. This seems to be because the environment variables are loaded when the Suite installation begins and any child processes of the suite will not refresh the variables regardless of any code in these child processes to do so. I have tried multiple ways inside the powershell script to do this without doing a text replacement on the file that requires the ERLANG_HOME variable and without scheduling a reboot as they would be last resort. It seems I need to write an InstallScript function that can refresh the environment variables and pass these to the child processes ideally but I can't get it to work. Sample of my code below to do this. Note we are using Installshield 2018 Premier and Windows 10 for majority of installs. //////////////////////////////////////////////////////////////////////////////// // // This template script provides the code necessary to build an entry-point // function to be called in an InstallScript action during a Suite installation. // // // File Name: Setup.rul // // Description: InstallShield script // //////////////////////////////////////////////////////////////////////////////// // Include Ifx.h for built-in InstallScript function prototypes and for Suite // function prototypes. #include "ifx.h" // The keyword export identifies MyFunction() as an entry-point function. // The argument it accepts must be an object for a Suite extension interface. export prototype RefreshEnvironment(OBJECT); // To Do: Declare global variables, define constants, and prototype user- // defined and DLL functions here. /////////////////////////////////////////////////////////////////////////////// // // Function: MyFunction // // Purpose: This function will be called by the script engine when // the Suite engine calls your InstallScript action. // /////////////////////////////////////////////////////////////////////////////// function RefreshEnvironment(oExtension) // To Do: Declare local variables. begin // Flush the NT registry to all applications. szEnv = "Environment"; pEnv = &szEnv; SendMessage (HWND_BROADCAST, WM_WININICHANGE, 0, pEnv ); end; If you could assist me with this function it would be a great help, or at least point me in the right direction. I have read nearly every answer I could find anyway related to this dating as far back as 2007 but I know there were changes to Installscript in 2010 so I'm not even sure if this code is relevant any more. Thanks in advance. Regards, Conor
... View more
Labels
- Labels:
-
InstallShield 2018
Feb 02, 2021
10:07 AM
Sorry, I just re-read your question. What I said will run the batch file as local system (not admin) but it appears the issue you have is actually being returned from SQL Server. You might need to add a user to SQL Server with permission to alter the role. So you either need to not run the custom action deferred and add the local user to SQL login with permission to modify roles, or make the action deferred and possibly add system as a user.
... View more
Feb 02, 2021
10:03 AM
Hi, If you want to run the batch file with elevated privileges then you will need to set the execution to "Deferred in system context" (or something similar) and also make sure that your custom action is sequenced in between InstallInitialize and InstallFinalize. This will actually run the file under the local system account so it will be a level above admin. In rare cases and depending on the contents of your batch file you might need to run as admin only but this would normally only cause issues where you are trying to do a file copy over network etc. and the local system would not have permission. Also, if you are relying on any properties in a custom action when calling it in deferred execution then you will need to pass these in using a CAD or custom action data action but this might not apply to you and is somewhat well documented online. Good luck. Thanks, Conor
... View more
Feb 02, 2021
09:56 AM
Hi, Is there any else I can try here? This is still an issue and the build event I am using to copy the output to another location is not working either so it would be great to get these sorted. I'm working on some events here to with Powershell and seeing some funny behaviour but will be opening up another question around this. Thanks,
... View more
Jan 28, 2021
10:04 AM
Hi, Thanks for the recommendation. I followed your guidance and I am still not seeing any extra information around this particular issue. I've pasted the log below from the verbose output and attached an image of the VM configuration. Is there something I need to enable on the VM to allow the copy? The snapshot reversal is working fine. c:\InstallShield 2018 Projects\ISSuiteInstaller>"C:\Program Files (x86)\InstallShield\2018\System\iscmdbld.exe" -p "C:\InstallShield 2018 Projects\ISSuiteInstaller\ISSuiteInstaller.issuite" -a "ISSuiteInstaller" -r "Release" -v InstallShield (R) Release Builder Copyright (c) 2018 Flexera. All Rights Reserved. Build started at Jan 28 2021 12:11 pm Building Release: Release DoUpgradeAndBuildEx DoUpgradeAndBuildExInternal DoUpgrade DoSuiteUpgrade GetNewFileName spProject->Open Succeeded ISDEV : warning -5006: Could not save "C:\InstallShield 2018 Projects\ISSuiteInstaller\ISSuiteInstaller.issuite" Deleting folder "C:\InstallShield 2018 Projects\ISSuiteInstaller\ISSuiteInstaller\Release\DiskImages" Deleted folder "C:\InstallShield 2018 Projects\ISSuiteInstaller\ISSuiteInstaller\Release\DiskImages" successfully Creating path "C:\InstallShield 2018 Projects\ISSuiteInstaller\ISSuiteInstaller\Release" Creating path "C:\InstallShield 2018 Projects\ISSuiteInstaller\ISSuiteInstaller\Release\DiskImages" Creating path "C:\InstallShield 2018 Projects\ISSuiteInstaller\ISSuiteInstaller\Release\LogFiles" Creating path "C:\InstallShield 2018 Projects\ISSuiteInstaller\ISSuiteInstaller\Release\DiskImages\Disk1" Creating path "C:\InstallShield 2018 Projects\ISSuiteInstaller\ISSuiteInstaller\Release\Interm" Creating log file: "C:\InstallShield 2018 Projects\ISSuiteInstaller\ISSuiteInstaller\Release\LogFiles\1-28-2021 12-11-18 pm.txt" Created release folders BuildProject Copying from "C:\Program Files (x86)\InstallShield\2018\Redist\Language Independent\i386\SetupSuite.exe" to "C:\InstallShield 2018 Projects\ISSuiteInstaller\ISSuiteInstaller\Release\DiskImages\Disk1\ISSuiteSetup.tmp" Embedding manifest SetupExe.Admin.manifest into setup.exe Embedding file "C:\Program Files (x86)\InstallShield\2018\Support\SetupExe.Admin.manifest" into "C:\InstallShield 2018 Projects\ISSuiteInstaller\ISSuiteInstaller\Release\DiskImages\Disk1\ISSuiteSetup.tmp" Copying from "C:\Program Files (x86)\InstallShield\2018\Support\SuiteSetup.ini" to "C:\InstallShield 2018 Projects\ISSuiteInstaller\ISSuiteInstaller\Release\DiskImages\Disk1\SuiteSetup.ini" Processing Package 'otp_win32_23.2' Adding files for Package 'otp_win32_23.2' Adding File 'otp_win32_23.2.exe' for Package 'otp_win32_23.2' Processing Package 'otp_win64_23.2' Adding files for Package 'otp_win64_23.2' Adding File 'otp_win64_23.2.exe' for Package 'otp_win64_23.2' Processing Package 'python-3.9.1' Adding files for Package 'python-3.9.1' Adding File 'python-3.9.1.exe' for Package 'python-3.9.1' Processing Package 'python-3.9.1-amd64' Adding files for Package 'python-3.9.1-amd64' Adding File 'python-3.9.1-amd64.exe' for Package 'python-3.9.1-amd64' Processing Package 'rabbitmq-server-3.8.9' Adding files for Package 'rabbitmq-server-3.8.9' Adding File 'rabbitmq-server-3.8.9.exe' for Package 'rabbitmq-server-3.8.9' ISDEV : warning -7337: Feature RabbitMQ Service has no associated packages. Processing String Tables Adding Support Files Deleting file "C:\InstallShield 2018 Projects\ISSuiteInstaller\ISSuiteInstaller\Release\DiskImages\Disk1\SuiteSetup.ini" Copying from "C:\Program Files (x86)\InstallShield\2018\Redist\Language Independent\i386\ClrWrap.dll" to "C:\InstallShield 2018 Projects\ISSuiteInstaller\ISSuiteInstaller\Release\Interm\ClrWrap.dll" Embedding file "C:\Program Files (x86)\InstallShield\2018\Redist\Language Independent\i386\ClrSuitePSHelper.dll" into "C:\InstallShield 2018 Projects\ISSuiteInstaller\ISSuiteInstaller\Release\Interm\ClrWrap.dll" Deleting file "C:\InstallShield 2018 Projects\ISSuiteInstaller\ISSuiteInstaller\Release\Interm\ClrWrap.dll" Moving from "C:\InstallShield 2018 Projects\ISSuiteInstaller\ISSuiteInstaller\Release\DiskImages\Disk1\ISSuiteSetup.tmp" to "C:\InstallShield 2018 Projects\ISSuiteInstaller\ISSuiteInstaller\Release\DiskImages\Disk1\ISSuiteSetup.exe" Staging to Virtual Machine Distribution started on 28-Jan-2021, 12:11:37 PM Connecting to Image 1E861640-CCC6-4EA0-BA7C-067CA23E27D4 Reverting to snapshot FT-BASEX86 - (14/12/2020 - 16:27:55) Current state is 0 Copying files from 'C:\InstallShield 2018 Projects\ISSuiteInstaller\ISSuiteInstaller\Release\DiskImages' --> '' Copying files from 'C:\InstallShield 2018 Projects\ISSuiteInstaller\ISSuiteInstaller\Release\DiskImages\Disk1' --> 'Disk1' Copying 'C:\InstallShield 2018 Projects\ISSuiteInstaller\ISSuiteInstaller\Release\DiskImages\Disk1\ISSuiteSetup.exe' --> 'ISSuiteSetup.exe' Distribution failed. Distribution finished at 28-Jan-2021, 12:11:52 PM Launching postbuild events... BuildEvent: unresolved event 'copy "C:\InstallShield 2018 Projects\ISSuiteInstaller\ISSuiteInstaller\Release\DiskImages\Disk1\ISSuiteSetup.exe" "C:\Share\Temp\ISSuiteInstaller\ISSuiteSetup.exe" /Y' BuildEventThread: launching event command line: 'copy "C:\InstallShield 2018 Projects\ISSuiteInstaller\ISSuiteInstaller\Release\DiskImages\Disk1\ISSuiteSetup.exe" "C:\Share\Temp\ISSuiteInstaller\ISSuiteSetup.exe" /Y' BuildEventThread: failed to launch event, last error: 2 The Advanced UI or Suite/Advanced UI installation creation process has completed with: 0 Errors and 2 Warnings. Log file has been created: <file:C:\InstallShield 2018 Projects\ISSuiteInstaller\ISSuiteInstaller\Release\LogFiles\1-28-2021 12-11-18 pm.txt> Build finished at Jan 28 2021 12:11 pm c:\InstallShield 2018 Projects\ISSuiteInstaller> Thanks,
... View more
Jan 27, 2021
06:15 PM
1 Kudo
Hello, If I were doing this I would create a Dialog with an input field to accept IP Address during the UI sequence and then store this value in a property. You can then use this property in the registry section like below, I used USER_IPADDRESS as the property name in a quick example below. No custom script or action needed. You will need to familiarise yourself with dialogs though but there is a lot of information about these online and should be some examples you can copy. Also, where possible I believe it is good practice to use the in-built actions for this kind of work because in the event of a rollback it will handle the removal of this key for you too. If you were to do this with VBScript, Powershell or any of your own custom actions then you would also need a rollback action to remove the key on install failure (assuming you want to follow best practice and clean reg during uninstall/rollback) Good luck! , Conor
... View more
Jan 27, 2021
01:14 PM
Hi, I am trying to distribute an installer to a virtual machine after build. The server config seems correct and it successfully reverts snapshots but fails to copy the setup.exe to the destination path on the virtual machine. The user account on the VM is correct also and I have tried different formats for destination path and ensuring the destination exists. Is there a more detailed log than the output view that is normally generated as it just tells me distribution failed? Thanks in advance. Regards, Conor
... View more
Labels
- Labels:
-
InstallShield 2018
Jul 09, 2020
04:38 PM
Thanks Jenifer. We have tried the oleaut32.dll registration and even re-installing msvbvm50 but it did not have any effect. We will open a ticket with support and see what our options are. Thanks for your suggestions though, they have been helpful all the same. Take care.
... View more
Jul 08, 2020
03:13 PM
In response to this, We have applied all pending Windows Updates and still have issue. You'll have to excuse me too but I searched some of your other posts and noticed one where you suggested using the debugger to someone having another issue. It is at this link here https://docs.flexera.com/installshield19helplib/Subsystems/installshield19isdbg/helplibrary/DebuggingInstall-AnyComputer.htm We had seen this previously but believed it was only for debugging Installscript actions but if it is something we could use in this case it would be very helpful. The instructions are not completely clear as to whether the files need to exist in the same folder as the setup.exe but we have been trying to follow them and run the setup.exe with /d but not sure if it is working or are we missing something. If you think it is something that will help we can pursue this option further. I'm sure it will be useful for any errors in future too. Thanks,
... View more
Jul 08, 2020
09:53 AM
Hi Jenifer, Thanks for reply 🙂 We have tried un-registering and re-registering the msiexec but no effect. We have also looked for relevant patch following your link but we are on Windows 10 and none is available. Details of system below (note this is a VM of physical machine so some hardware will be different), This PC is domain joined hence the reason we thought it might be a policy on the system blocking the installer. We have removed the VM from the domain and removed the policies via the registry to test this but still getting same behaviour. We will try enabling the Windows Updates and see if it pulls down any patches and re-test. On our own domain we were seeing similar behaviour and the fix was to give permissions on the following in Component Services, We have done this on this machine and it has not solved the issue. There doesn't seem to be anything in EventViewer showing an error when running this installer bar the standard MSI events saying it is installing and failing. It's a bit of a pickle this but I'll buy you a drink if you can help us solve it. Thanks,
... View more
Latest posts by conorhoran
Subject | Views | Posted |
---|---|---|
146 | Jul 01, 2024 04:43 AM | |
588 | Oct 08, 2021 05:55 AM | |
17672 | Sep 29, 2021 07:32 AM | |
1181 | Sep 28, 2021 05:35 PM | |
970 | Sep 28, 2021 05:22 PM | |
1276 | Feb 02, 2021 03:52 PM | |
2202 | Feb 02, 2021 10:07 AM | |
2203 | Feb 02, 2021 10:03 AM | |
2464 | Feb 02, 2021 09:56 AM | |
2496 | Jan 28, 2021 10:04 AM |
Activity Feed
- Posted Re: Refresh Environment Variables InstallScript on InstallShield Forum. Jul 01, 2024 04:43 AM
- Kudoed Re: Refresh Environment Variables InstallScript for fluzzi-csw. Jul 01, 2024 04:35 AM
- Got a Kudo for Re: InstallShield 2020 R3 as step in Azure DevOps Pipeline. Nov 02, 2022 09:45 AM
- Posted Using Azure DevOps pipeline build task on InstallShield Forum. Oct 08, 2021 05:55 AM
- Posted Re: InstallShield Azure DevOps Build Extension on InstallShield Knowledge Base. Sep 29, 2021 07:32 AM
- Posted Configure Cloud Licensing Server on InstallShield Forum. Sep 28, 2021 05:35 PM
- Posted Re: InstallShield 2020 R3 as step in Azure DevOps Pipeline on InstallShield Forum. Sep 28, 2021 05:22 PM
- Posted Refresh Environment Variables InstallScript on InstallShield Forum. Feb 02, 2021 03:52 PM
- Tagged Refresh Environment Variables InstallScript on InstallShield Forum. Feb 02, 2021 03:52 PM
- Tagged Refresh Environment Variables InstallScript on InstallShield Forum. Feb 02, 2021 03:52 PM
- Tagged Refresh Environment Variables InstallScript on InstallShield Forum. Feb 02, 2021 03:52 PM
- Posted Re: Help with Custom Action Not running bat file as Administrator on InstallShield Forum. Feb 02, 2021 10:07 AM
- Posted Re: Help with Custom Action Not running bat file as Administrator on InstallShield Forum. Feb 02, 2021 10:03 AM
- Posted Re: Virtual Machine Distribution - Copy Error on InstallShield Forum. Feb 02, 2021 09:56 AM
- Posted Re: Virtual Machine Distribution - Copy Error on InstallShield Forum. Jan 28, 2021 10:04 AM
- Got a Kudo for Re: Installshield 2020 Registry. Jan 28, 2021 07:05 AM
- Posted Re: Installshield 2020 Registry on InstallShield Forum. Jan 27, 2021 06:15 PM
- Posted Virtual Machine Distribution - Copy Error on InstallShield Forum. Jan 27, 2021 01:14 PM
- Posted Re: Failed to marshal script action. on InstallShield Forum. Jul 09, 2020 04:38 PM
- Kudoed Re: Failed to marshal script action. for Jenifer. Jul 09, 2020 04:34 PM
Contact Me
Online Status |
Offline
|
Date Last Visited |
Jul 01, 2024
08:04 AM
|