installshield

get Common Documents folder in VBS

不羁的心 提交于 2019-12-06 12:42:36
To my great chagrin, I must use VBS to write an InstallShield 2010 LE custom action. I have no VBS experience so I'm basically putting together code snippets that I find. I need to get a hold of the Common Documents folder (CSIDL_COMMON_DOCUMENTS). It's not defined in WScript.Shell.SpecialFolders (although All Users Desktop is). I found some example code that tries to link to a system DLL: Private Declare Function SHGetFolderPath Lib "shfolder.dll" _ Alias "SHGetFolderPathA" _ (ByVal hwndOwner As Long, _ ByVal nFolder As Long, _ ByVal hToken As Long, _ ByVal dwReserved As Long, _ ByVal

How can InstallShield check if SQL Server 2005 (3.1) Compact Edition (CE) is installed

最后都变了- 提交于 2019-12-06 12:20:45
问题 I am developing a Windows desktop application which requires the SQL Server 2005 Compact Edition (SQLServerCE31-EN.msi) to be installed. I am using InstallShield 2011 to install this as a pre-requisite during the installation process. In order to come up with the pre-requisite definition I used Process Monitor to see that these registry locations are checked when SQLServerCE31-EN.msi is run manually (not via the installer): 32-bit: HKEY_LOCAL_MACHINE\Software\Microsoft\Microsoft SQL Server

Modify exe manifest of InstallShield X (Version 10.5)

ⅰ亾dé卋堺 提交于 2019-12-06 11:51:58
I have InstallScript Project created with InstallShield X (Version 10.5) When I run mt.exe from Windows SDK v7.1A with the following manifest: MySetup.exe.manifest <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2"> <security> <requestedPrivileges> <requestedExecutionLevel level='requireAdministrator' uiAccess='false' /> </requestedPrivileges> </security> </trustInfo> </assembly> using the following command: # wrong file! MySetup.exe will be truncated! mt.exe

How to find the setup location in an VBScript custom action for InstallShield?

耗尽温柔 提交于 2019-12-06 11:51:25
In an InstallShield project I have a VBScript custom action that conditionally needs to execute a certain file packaged with the install. Normally I get the current directory of a vbs using code such as sCurPath = CreateObject("Scripting.FileSystemObject").GetAbsolutePathName(".") Which, if it returned the location of the Setup.exe that initiated the install, should work. However when running the install, the current path (on XP) is C:\Windows\system32 instead of the location of the Setup.exe file I was expecting. Assuming the output of my InstallShield build looks like the following Disk1 -

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

Rescan device tree for hardware changes during Driver installation

人盡茶涼 提交于 2019-12-06 10:22:32
I'm using InstallShield to install my application, a driver and a service. I need to install the plug-N-play driver only if it's hardware ID was found in the device manager. The driver installation is done using DPInst.exe. My problem, is that a user can sometimes manually uninstall the driver (After it was installed or even uninstall the "Unknown driver" under "Other devices" ) and then I can't find the hardware ID in the device tree, although the device is plugged. If I rescan the device tree during installation using CM_Reenumerate_DevNode_Ex (The code equivalent of "Scan for new hardware"

How to register interop .net asssembly per user Without Administrator Privileges using InstallShield

孤者浪人 提交于 2019-12-06 10:10:44
问题 I am working on a task not to prompt a normal user a popup(UAC) for approval to install windows Addin application while registering a .net assembly during installation using instalshield. On windows xp, its working fine but during installation on vista and windows 7, a popup comes up for approval. As per the requirement, it shouldnt come. Is there any way to bypass this pop up on vista and windows 7 if UAC is on and registered the assembly per user without administrator privileges? Kindly

How to pass parameters to custom action for a managed code dll written in C#?

帅比萌擦擦* 提交于 2019-12-06 09:41:41
I have a requirement where I have to pass 3 parameters to the c# code for managed code custom action in installshield. Cant give the code. Please someone help me out even with basic way of doing so. Thanks in advance. Since you mention a custom action, refer to Specifying the Signature for a Managed Method in an Assembly Custom Action . Specify values, or properties that store the values, that you need to pass to the parameters in the function. Note that if this is a deferred custom action, you will need to pass them through CustomActionData as mentioned in the third paragraph "Using a Custom

Installer to Install one or more programs

我是研究僧i 提交于 2019-12-06 07:43:15
We have around 8 different programs each with its own MSI / EXE installer. What is the best way to create a single installer that will give users a list of the 8 different programs and then based on the apps the user wants to install they will start the installer one by one. The installer can run and just launch the app installers one by one and don't need to automatically install all the apps behind the scenes. Thanks I'd use the free InnoSetup for that. It also comes with Pascal scripting and is able to "temporarily" install your MSIs into a temp folder and execute them. Some scripting may

installshield with custom action

耗尽温柔 提交于 2019-12-06 06:47:12
问题 I am creating a basic msi project using installsheild 2012 premier. I have two problems. 1.) The MSI needs to run a custom exe after it has created the folders and files of the application being installed. It needs to do this only once when the application is being installed. 2.) The MSI also needs to tell the custom exe being run, what language the user selected to run the MSI in. I have no clue about problem 2. With regards to problem 1 here is my attempt as described below: The way I have