Quantcast
Channel: Flexera Community Forums
Viewing all 4553 articles
Browse latest View live

Dump settings to a properties file

$
0
0
All,

Here is our situation:

  1. We are automating build of installers. We are doing this by generating a manifest of the deliverables for InstallAnywhere 2013 to pickup.
  2. I developed the installer in my workspace. I created the project file by running the gui and configuring it per our requirements.
  3. Now I want to put it into production which means we will be building the installer from workspaces other than my own.
  4. IA copies a bunch of resource files to where the .iap_xml file is such as .gif files, etc when the .iap_xml file is created. It inserts entries such as
    <property name="userSplashPath">
    <string><![CDATA[$IA_PROJECT_DIR$\resources\254563a034ed41e4e80b453700885aba]]></string>
    </property>
  5. I know I need to version control the xml file in order for someone in another workspace to be able to sync and run the installer.
  6. Does that also mean I need to version control all of this stuff it copies over or is there a way for me to dump all of my settings to a properties file and use that?
  7. Also, is there a way to get the installer to place these resources from just a command line build or do we have to run the GUI first?

Wtsapi32.WTSQuerySessionInformationA to get WTSClientProtocolType

$
0
0
I've been trying with mixed luck to get the session type. Ironically I had this working at one point but it now fails to prove the correct answer.


#define WTS_CURRENT_SESSION -1
#define WTSClientProtocolType 16
#define WTS_CURRENT_SERVER_HANDLE 0

LONG nReturnBytes;
POINTER pointerToPointer;
SHORT nProtocol;
NUMBER nSuccess;
........
prototype stdcall Wtsapi32.WTSQuerySessionInformationA(NUMBER, NUMBER, NUMBER, POINTER, POINTER);
nSuccess = WTSQuerySessionInformationA(WTS_CURRENT_SERVER_HANDLE, WTS_CURRENT_SESSION, WTSClientProtocolType, &pointerToPointer, &nReturnBytes);
nProtocol = *pointerToPointer;

The return value is always non-0 (aka success) but Unfortunately nProtocol is not 0,1, or 2.

What am I doing wrong?
Thank you,
Dave

SQL Server name

$
0
0
Hello
Is there some way to get the real name of the sql server that Installshield is connected to?
Computer name\instantname is not suitable to me because in case that the computer name has been altered
after the server installation this will not fit.

Thanks

Unable to create virtual directory under 'Default web site' in IIS6

$
0
0
Hi,

I'm trying to create installer for Asp.Net web application through Install Shield 2009. But I'm not able to create virutal directory under "Default web Site" in IIS6. So can you please suggest me how to create virtual directory and adding files to the directory.

5 digit versionnig in InstallAnywhere

$
0
0
Hello guys,

I am using InstallAnywhere 2011 SP4 Standard edition which gives a 4 text boxes for version in Project -> Description.
In my build, we have five digit versioning like 4.0.1.22.123 (I also want to display 5 digit version for my build in control panel -> Programs and feature)
Is there any way to implement 5 digit versioning in InstallAnywhere

Thanks in advance.

Problem using Active Setup on x64 systems

$
0
0
I am using the Microsoft Active Setup registry key to execute a .reg file when a different user logs into the system.

The current implementation works for x86 systems. However, for x64 systems, it is not working.
The MSI is a basic MSI, compiled as a x86 setup.
The component for setting up Active Setup has a registry key written to HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components\[ProductCode]
The registry entry is Version=1,0; stubPath=regedit /s "[INSTALLDIR]myRegFile.reg"
In the same component, I have a corresponding matching key for HKCU.

When I install on a x86 machine, the values are written correctly in both locations.
On a x64 system, the HKLM key writes to the Wow6432Node BUT HKCU does not write anything to the Wow6432Node, instead it is writing to the x86 Node.

When the current user restarts the x64 machine, they are given a UAC prompt to modify the registry. They should not be prompted for anything for this since the version exists in the HKCU key. I am not even sure if this Hive is supposed to support virtualization either. However, Active Setup, if I give permissions to run, creates a key in a node labeled Wow6432Node for Active Setup. If I restart the system again, there are no more prompts for merging a .reg file. If I log into a system as a different users there are no prompts for merging .reg changes. However if I inspect the registry, the .reg file has definitely been merged.

Here is an article that explains how this key is used: http://www.etlengineering.com/installer/activesetup.txt, by Ed Tippelt.
Attached is a sample MSI that shows the problem. Run the installation on a Windows x64 system. After look at the HKLM registry key, and then again at the HKCU key. HKCU insists on writing to the 64bit registry hive while HKLM is writing, correctly, to the HKLM hive.

Seeing this problem I thought I would try writing specifically to the Wow6432Node in HKCU, but no, Vista x64 does not like this at all and tells me that I do not have sufficient privileges to perform this action. I tried this using a condition VersionNT64 for the component so that it only installs on x64 systems, and NOT VersionNT64 on the x86 component.
Attached Files

standalone build throwing error -1114: The parameter 'ûp' is not preceded by a switch

$
0
0
Hi
I am doing standalone build for one of our ism file like iscmbld.exe -p "<path to .ism" but it is throwing below error-

InstallShield (R)
Release Builder
Copyright (c) 2013 Flexera Software LLC.

All Rights Reserved.
-1114: The parameter 'ûp' is not preceded by a switch.


Any idea what could be issue here?

DotNetCoCreateObject crashes IS when used in OnFirstUIBefore

$
0
0
InstallScript project.
InstallShield 2012.

When using DotNetCoCreateObject and calling a method on the dll the InstallShield setup crashes (even exception handling won't stop it from crashing) but ONLY when I do it in OnFirstUIBefore. The exact same call works fine if done later in the process (e.g. in a feature installing handler). It is as if there is something that gets initialised by InstallShield after OnFirstUIBefore is called that allows DotNetCoCreateObject to work after that.

Code:

try
  set myObj = DotNetCoCreateObject("D:\\Wibble.dll", "Mycompany.Wibble.MyWibbleClass, "Mycompany.Wibble");
  myObj.MyTest(); // CRASHES HERE!
                       
  set myObj = NOTHING;
  DotNetUnloadAppDomain("Mycompany.Wibble");
catch
  MessageBox("Oh poop", INFORMATION);
endcatch;

Any ideas why it crashes when you call MyTest in OnFirstUIBefore but not after that?!

Install to multiple machines

$
0
0
Hello,
I need to install our product to multiple machines within a local network. Instead of manual installation on each machine, is there a solution that could automate this process?
Assume that administrator has list of machines and administrator username/passwords to all the machines.
Please advise
Thank you,
Yuri

how to remove context help button from the form

$
0
0
HI,

Using install shield 2008 version , project type is install script MSI project

Using built in function to SelectDirEx to create alternate path folder. In the new window "?" is displayed in the form.

screen shot attached .

Kindly reply , whether context help (?) could be removed from the form with install shield version 2008.

IS this fixed in the latest install shield version.
Attached Images
 

Access denied error when attempting to Install on a network drive

$
0
0
Hello,

I am using Installshield 2012

Installation seems to work fine when installing on a local box wheras the installation fails with Access denied error when attempting to Install on a network drive.

See attached below error logs:

InstallShield 12:19:56: Error extracting ISBEW64.exe from ISLockPermissions.dll
....
....
....
....
MSI (s) (6C:3C) [12:20:33:016]: Executing op: ActionStart(Name=ISSQLServerWriteLoginInfo,,)
Action 12:20:33: ISSQLServerWriteLoginInfo.
MSI (s) (6C:3C) [12:20:33:016]: Executing op: CustomActionSchedule(Action=ISSQLServerWriteLoginInfo,ActionType=3073,Source=BinaryData,Target=ISSQLServerWriteLoginInfo,CustomActionData=C:\Users\VIGNES~1.D\AppData\Local\Temp\~67A9.tmp)
MSI (s) (6C:44) [12:20:33:031]: Invoking remote custom action. DLL: C:\WINDOWS\Installer\MSIF5FD.tmp, Entrypoint: ISSQLServerWriteLoginInfo
MSI (s) (6C:3C) [12:20:33:063]: Executing op: ActionStart(Name=ISLockPermissionsInstall,,)
Action 12:20:33: ISLockPermissionsInstall.
MSI (s) (6C:3C) [12:20:33:063]: Executing op: CustomActionSchedule(Action=ISLockPermissionsInstall,ActionType=3073,Source=BinaryData,Target=ISLockPermissionsInstallAction,CustomActionData=*C:\Program Files (x86)\|CreateFolder|CAUSEWAY|Everyone|1880031743|0*C:\Program Files (x86)\Causeway\|CreateFolder|CAUSEWAY|Everyone|1880031743|0*\\bg-ces-sql2012\Causeway\Estimating\Jobs\|CreateFolder|CAUSEWAY|Everyone|1880031743|0*\\bg-ces-sql2012\Causeway\Estimating\Common\|CreateFolder|CAUSEWAY|Everyone|1880031743|0*\\bg-ces-sql2012\Causeway\Estimating\Config\|CreateFolder|CAUSEWAY|Everyone|1880031743|0*\\bg-ces-sql2012\Causeway\Estimating\Import\|CreateFolder|CAUSEWAY|Everyone|1880031743|0*\\bg-ces-sql2012\Causeway\Estimating\Config\TEMP\|CreateFolder|CAUSEWAY|Everyone|1880031743|0*\\bg-ces-sql2012\Causeway\Estimating\Enterprise.xml|File|CAUSEWAY|Everyone|1880031679|0)
MSI (s) (6C:0C) [12:20:33:078]: Invoking remote custom action. DLL: C:\WINDOWS\Installer\MSIF62C.tmp, Entrypoint: ISLockPermissionsInstallAction
InstallShield 12:20:33: Getting existing security descriptor for 'C:\Program Files (x86)\'
InstallShield 12:20:33: Setting new security descriptor for 'C:\Program Files (x86)\'
InstallShield 12:20:33: Failed to set new security descriptor, last error: 0x00000005
InstallShield 12:20:33: Getting existing security descriptor for 'C:\Program Files (x86)\Causeway\'
InstallShield 12:20:33: Setting new security descriptor for 'C:\Program Files (x86)\Causeway\'
InstallShield 12:20:33: Getting existing security descriptor for '\\bg-ces-sql2012\Causeway\Estimating\Jobs\'
InstallShield 12:20:33: Failed to obtain existing security descriptor, last error: 0x00000005
InstallShield 12:20:33: Failed to apply permissions for object '\\bg-ces-sql2012\Causeway\Estimating\Jobs\', error 0x00000005
Internal Error 27555. \\bg-ces-sql2012\Causeway\Estimating\Jobs\, Access is denied.
, 5
MSI (s) (6C!10) [12:38:44:433]: Product: CES V3.3.0.20 SQL -- Internal Error 27555. \\bg-ces-sql2012\Causeway\Estimating\Jobs\, Access is denied.
, 5

InstallShield 12:38:44: Error returned from ApplyPermissionsItems: 0x00000643
CustomAction ISLockPermissionsInstall returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Action ended 12:38:44: InstallFinalize. Return value 3.



Regards,
Vignesh
Attached Images
 
Attached Files

ISDEV Crashing

$
0
0
Hi All,

Since today ISDEV version 19.0.0.185 is crashing with the following eventlog entry

Any Ideas

Faulting application name: isdev.exe, version: 19.0.0.185, time stamp: 0x504d4b34
Faulting module name: mshtml.dll, version: 11.0.9600.17207, time stamp: 0x53a22b71
Exception code: 0xc0000005
Fault offset: 0x000a6ed0
Faulting process id: 0x23e0
Faulting application start time: 0x01cf9b4f49f586ac
Faulting application path: C:\Program Files (x86)\InstallShield\2012Spring\System\isdev.exe
Faulting module path: C:\Windows\SYSTEM32\mshtml.dll
Report Id: 8a0f9a22-0742-11e4-8131-d4bed963c3c7
Faulting package full name:
Faulting package-relative application ID:

How to save Response of a url (http//:www.myweb.com/) in to xml file

$
0
0
Hey all,
I am making a setup using Basic MSI project and I am using Install Script also, I need to ping a url which will return response in xml format so I need to save the response in xml file for later use. But I don't know how to do this. Please help me :confused::confused::confused:

Problem including .NET Framework 4.5 into Project

$
0
0
I am currently having trouble adding the "Microsoft .NET Framework 4.5 Full" to a project. The project is an existing project that we have been using for awhile, and need to upgrade the framework. I have gone under the Redistributables tab, and checked the framework. I made sure that it was downloaded as well.

The project appears to build fine, but when I try to install the project I get a message that "The files for installation requirement Microsoft .NET Framework 4.5 Full could not be found. This is probably due to a failed, or canceled download”. I have tried setting it to both Copy from Source, and Extract from Setup, neither of which changes the message. When I look at the size of the files in the executable it does not look like anything is being included as well.

I have tried everything I could think of to get this into the install, including re-downloading in case there was an error, and various other combinations of settings. I am currently using Install shield 2013- Professional Edition, Version 20.

Had anyone had this problem, or know what I need to do in order to get the .NET installer included with the setup?

isdev.exe 2014 crash: Workaroud

$
0
0
The Microsoft update that has caused the issue is Microsoft security update (KB2962872) July 8.

MS14-037: Security update for Internet Explorer versions 6, 7, 8, 9, 10, and 11: July 8, 2014

http://support.microsoft.com/kb/2962872.

You can uninstall this update as a temporary workaround and InstallShield should be able to launch again.

keep config file after upgrade

$
0
0
Hello,

1. I created a sample project which copies a txt file on the target machine. I created an ini file by going in the menu System Configuration. For the action, I selected "Do not overwrite". I let every value by default for the rest.

2. I launch the application which creates me the txt file and the ini file on the target machine.

3. I go again in my sample project and I changed the ini file in the menu System Configuration by changing the value associated to a key. I compile and exectute again the new project.

Result : The setup detected that I am trying to updade. The issue is that the ini file is overwritten.

Question: How to keep config files that would not be overwritten when doing an update.

I am using IS2014 Premium on Windows 7.

Force the master

$
0
0
On a triad, how can I force the master to another server ?

In SQL Dialog some Junk Chinese character getting listed down in Server combo

$
0
0
Basic MSI project was created in IS 2013. Localization support was added for Chinese language for the product. Project is using SQL scripts view to execute sql scripts.

Now in the SQL Dialog i am seeing some Junk Chinese character getting listed down in Server combo box.

How to resolve this issue.

Any help is very much appreciated.

Name:  Untitled.jpg
Views: 6
Size:  60.9 KB
Attached Images
 

Upgrade Packages from Suite

$
0
0
I am having trouble upgrading Basic MSI packages from a Suite. The packages upgrade fine if run individually, but I don’t find much info on how to upgrade them from a Suite project. What I have done so far is:
1. Unique Suite Guid for both old and new version (otherwise it assumes Install)
2. Changed the ‘MaintenanceWelcome’ wizard page to replace ‘Modify’ with ‘Upgrade’.
3. When the user clicks on Upgrade I:
a. Set IsInstallMode to upgrade or install (neither works)
b. Set the Active Page to a new one I created that basically just prompts the user for verification (that works)
c. When the user clicks on ‘Next’ I:
- Set FEATURE[MyFeatureName].actionState to upgrade or install (neither works)
- Install Page = InstallationProgress
4. None of the feature/packages get upgraded, but the Suite gets installed (now I have 2 suites; the old and the new)

Do I need to NOT change the Suite Guid, let it go to ‘InstallationType’ page and upgrade from there? I started down that path and still end up with 2 suites; the old and the new.

Thanks for any advice!

IS2013 ISDev crash on startup (Solution)

$
0
0
In case anyone is experiencing the same issue as me, I want to post this info here.

I'm using Windows 7 SP1. This morning, I installed Windows Updates and then rebooted my computer. After the updates were installed, both InstallShield 2012 Spring AND InstallShield 2013 crash on startup. ISDev simply will not launch. I suspected it was due to the Windows updates, since nothing else had changed on my PC.

After some research, I found that the problem is caused by KB2962872. After uninstalling this update and rebooting, InstallShield again works.

Here is an InstallShield2012 thread with more detail:
https://community.flexerasoftware.co...ISDEV-Crashing
Viewing all 4553 articles
Browse latest View live


Latest Images