installscript

InstallShield UseDLL() doesn't find dll dependencies in the same directory

二次信任 提交于 2019-12-11 19:16:48
问题 I have 1 dll file which I try to load during the installation with UseDLL() in one of my installscripts. this dll has 2 dlls it depends on. they both located on the same directory of the main dll. When in build the installation with an older installshield - it find it's dependencies and works fine. When I try to build it with IS2016, it fails because it doesn't find it's dependencies. (If I put these 2 dlls in SysWOW64 - it finds them and works fine). What is the problem? Thanks, Dudi 回答1: It

Get dir setup install shield

久未见 提交于 2019-12-11 14:41:40
问题 I want get dir my setup create by install shield. I use command parametter Setup.exe /path=[SETUPEXEDIR]\log.txt My setup location is Desktop\myapp\Setup.exe When use [SETUPEXEDIR] return temp folder I want when use [SETUPEXEDIR] return me my Setup.exe location. I use installshield 2016 version 23 SP 2. I use MSI Script. I want get location and use in command parameter prerequisites. 回答1: A little hard to comprehend exactly what you are asking, but as far as I understand you want to know the

How to update attributes in an XML file with InstallScript

时光怂恿深爱的人放手 提交于 2019-12-06 11:33:33
问题 Question: I am struggling trying to figure out how to update some attributes in an XML file using InstallScript. I would like to use proper XML parsing functions, but I can't find anything that suggests this version of InstallScript is capable of it. How can I do this? Should I just attempt falling back on a combination of FileInsertLine and FileGrep? Is there a library I'm missing? Background: What software versions? I am using InstallShield 11 on Windows Server 2003 R2. Why am I not just

How to update attributes in an XML file with InstallScript

一曲冷凌霜 提交于 2019-12-04 18:03:05
Question: I am struggling trying to figure out how to update some attributes in an XML file using InstallScript. I would like to use proper XML parsing functions, but I can't find anything that suggests this version of InstallScript is capable of it. How can I do this? Should I just attempt falling back on a combination of FileInsertLine and FileGrep? Is there a library I'm missing? Background: What software versions? I am using InstallShield 11 on Windows Server 2003 R2. Why am I not just using the existing 'XML File Changes' feature? Because I am doing an upgrade and running into this bug .

How to retain service settings through InstallShield upgrade install

爷,独闯天下 提交于 2019-12-01 00:12:08
I have an InstallScript project in IS2010. It has a handful of services that get installed. Some are C++ exes and use the "InstallShield Object for NT Services". Others are Java apps installed as services with Java Service Wrapper through LaunchAppAndWait command line calls. Tomcat is also being installed as a service through a call to its service.bat. When the installer runs in upgrade mode, the services are reinstalled, and the settings (auto vs. manual startup, restart on fail, log-on account, etc.) are reverted to the defaults. I would like to save the service settings before the file

How to retain service settings through InstallShield upgrade install

北战南征 提交于 2019-11-30 18:58:07
问题 I have an InstallScript project in IS2010. It has a handful of services that get installed. Some are C++ exes and use the "InstallShield Object for NT Services". Others are Java apps installed as services with Java Service Wrapper through LaunchAppAndWait command line calls. Tomcat is also being installed as a service through a call to its service.bat. When the installer runs in upgrade mode, the services are reinstalled, and the settings (auto vs. manual startup, restart on fail, log-on

Batch file can't immediately see environment variables created by InstallShield script

荒凉一梦 提交于 2019-11-30 18:41:38
问题 We use InstallShield 2008 for our product installation. Product consists of several components. When a component is installed, a batch-file with some post-install routines specific to this component is executed. The problem: post-install batch files use some environment variables that are set during the installation of the product through InstallScript . But it seems that batch-files can't see immediate changes in registry (and newly created environment variables). Is there a way to

RegDBGetKeyValueEx returns -1

旧时模样 提交于 2019-11-29 17:34:27
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(HKEY_LOCAL_MACHINE); szKey = "SOFTWARE\\Microsoft\\Shared Tools\\Web Server Extensions\\15.0"; szName =

Failed to run script function from Custom Actions

人盡茶涼 提交于 2019-11-29 16:39:22
I implemented an installscript file of my own that will allow the installer to register dll's. I combined this with a custom action to actually run the function I created. I had to make this script because the dlls were failing to register with setting the property to self register. So I am stuck on how to resolve this problem with the custom action failing so that I can test my script. Below is my script: #include "Ifx.h" export prototype RegisterComponents(HWND); function RegisterComponents(hMSI) STRING sRunStr; begin sRunStr = WINSYSDIR ^ "regsvr32.exe"; LongPathToQuote(sRunStr, TRUE); /

Windows 10 not detecting on installshield

送分小仙女□ 提交于 2019-11-27 09:52:14
Have requirement to detect windows 10 or greater version on install time. for that I have create following function. It gives me 603 (AS VersionNT value) in windows 10 and windows 8.1. That is wrong. Is there any other way to achieve this? function BOOL isWindows10OrGreater() STRING svWindowsValue; NUMBER nWindowsValue; NUMBER nBuffer; begin try nBuffer = 256; MsiGetProperty(ISMSI_HANDLE,"VersionNT",svWindowsValue,nBuffer); StrToNum(nWindowsValue,svWindowsValue); return (nWindowsValue >= 603); catch return FALSE; endcatch; end; Windows 10 - A Version Oddity Disclaimer : this information is to