installscript

how to open a web page on click of button in InstallShield?

岁酱吖の 提交于 2021-02-09 20:40:17
问题 HI, I want to open a web page on click of a button in any dialog that is created in InstallShield. I think it can be created by using custom actions but as I am new in this tool do not find the exact way to achieve this. Please help if anyone have idea for this. Thanks. 回答1: Like epotter mentioned, you could do the following To open a local html file LaunchAppAndWait( "explorer.exe", "c:\temp\readme.html", WAIT ); or to open a remote site LaunchAppAndWait( "explorer.exe", "http://www

How to read XML node's value in InstallScript

牧云@^-^@ 提交于 2021-01-29 08:10:24
问题 I have following XML file. <Configuration> <Config1 connection="SQL">SampleData<Config1> </Configuration> I want to read the value "SampleData" of node Config1 in InstallScript function. I tried properties text, value, nodevalue. But none of it worked. I can read attribute connection's value. But how I can read node's value "SampleData"? 回答1: Help Documentation : Maybe try this help file documentation: Searching for XML Data Modifying XML Files Using XPath Expressions to Find XML Data in an

string too long with MsiGetProperty with Installshield Installscript

情到浓时终转凉″ 提交于 2020-01-15 09:08:32
问题 I am using MsiGetProperty to get string parameter value from the installer. And after that I am calling a managed dll and I pass the that value: nvBufferSize = MAX_STRING; MsiGetProperty (hMSI, "DBHMS", sDbHost, nvBufferSize); when I pass the value of sDbHost is like this when I receive it from managed code: srvdata-02NULNULNULNULNULNUL...... however in the interface I wrote just "srvdata-02". With that same code it was fine with Installshield 2010, now I am upgrading it to installshield 2012

string too long with MsiGetProperty with Installshield Installscript

馋奶兔 提交于 2020-01-15 09:08:08
问题 I am using MsiGetProperty to get string parameter value from the installer. And after that I am calling a managed dll and I pass the that value: nvBufferSize = MAX_STRING; MsiGetProperty (hMSI, "DBHMS", sDbHost, nvBufferSize); when I pass the value of sDbHost is like this when I receive it from managed code: srvdata-02NULNULNULNULNULNUL...... however in the interface I wrote just "srvdata-02". With that same code it was fine with Installshield 2010, now I am upgrading it to installshield 2012

InstallShield with .NET 4.5 nested installation

拜拜、爱过 提交于 2019-12-24 08:39:16
问题 My installer needs to redistribute the .NET framework, but I don't want to have a setup.exe wrapper so I've written a Custom Action to launch the web installer for .NET if the end-users machine does not already have it. This works perfectly fine with .NET 4.0 and .NET 3.5 but for .NET 4.5 the .NET installer reports "waiting for another install to complete" and fails - this error msg would be correct if my Custom Action was in the Exec sequence, but I specifically placed it very early in the

InstallScript can not read text file containing result from command prompt

余生长醉 提交于 2019-12-24 06:08:26
问题 I am writing a Installscript function to run a command in command prompt, redirect the result from console to a text file, then read the text file for information. // send command method STRING szCmdPath, szCmdLine ; szCmdPath = "C:\\WINDOWS\\system32\\cmd.exe"; szCmdLine = "/c wslconfig /l > D:\\output.txt"; LaunchAppAndWait(szCmdPath, szCmdLine, WAIT); the send command method did not run the command with szCmdLine as I desired, it failed to recognize the command and produce the following

InstallScript can not read text file containing result from command prompt

天涯浪子 提交于 2019-12-24 06:08:18
问题 I am writing a Installscript function to run a command in command prompt, redirect the result from console to a text file, then read the text file for information. // send command method STRING szCmdPath, szCmdLine ; szCmdPath = "C:\\WINDOWS\\system32\\cmd.exe"; szCmdLine = "/c wslconfig /l > D:\\output.txt"; LaunchAppAndWait(szCmdPath, szCmdLine, WAIT); the send command method did not run the command with szCmdLine as I desired, it failed to recognize the command and produce the following

RegDBGetKeyValueEx returns -1

 ̄綄美尐妖づ 提交于 2019-12-18 09:46:18
问题 I am using below installscript code to identify whether SharePoint is installed or not. but its not working. The function returns -1. Not sure what is the issue. can someone please help? I want to do below steps Reach to this registry location first ""SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\15.0"" Read Name "SharePoint" and its value "Installed" refer attached image. function IsSharePointInstalled() STRING szKey, svValue, szName; NUMBER nvType, nvSize; begin RegDBSetDefaultRoot

InstrallShield Major Upgrade not completely uninstalling previous version

白昼怎懂夜的黑 提交于 2019-12-14 02:27:44
问题 I have an InstallShield 2016 InstallScript MSI project. I used the Major Upgrade option but with that approach what I see is that files of previous version gets removed, registry entries get deleted, etc. However, the uninstallation logic that is in the InstallScript (*.rul) files does not seem to get executed and hence the uninstall of previous version is not complete. Basically, it seems Major Upgrade does not execute InstallScript code? Please advise. thanks, 回答1: Many years ago I had to

How can I use installscript to detect Excel.exe running?

不羁岁月 提交于 2019-12-12 03:35:02
问题 Ive been trying to detect the excel process in my installshield installer. I have a custom action that runs after appsearch and pops a window if it finds the process and displays a warning to the user. I have tried using some old examples I found on installsite.org and using the findWindow() call. Neither seems to find excel.exe in the process list. Here is a snippet of code I was using when trying the findwindow export prototype MyTestFunction(HWND); function MyTestFunction(hMSI) HWND nHwnd;