Mar 25, 2011
11:19 AM
I spent a couple days researching this. We feel this is the appropriate place for our shared configuration files which need to be updated by individual users but not seen by users. We set the permissions on the folders using the Folder Tree View in InstallShield. Select the predefined folder, [CommonAppDataFolder], and add your folders. Right click on each folder, bring up the properties dialog, and select set permissions. Now your stuck right? No, hit the Insert key to add a user. Very intuitive eh? god I hate InstallShield. Anyway ... For us, we clear the [%USERDOMAIN] macro and input Everyone in the User column. IOW no domain. Set permissions as appropriate. We do create some folders and files dynamically, we use CACLS to set permissions on these. I use the following function to do the job: function SetPermissionsOnDir(szPath) STRING szCmd; STRING szCmdArgs; begin StrRemoveLastSlash(szPath); szCmd = WINSYSDIR ^ "cmd.exe"; szCmdArgs = "/c cacls \"" + szPath + "\" /T /E /G Everyone:F"; LaunchAppAndWait(szCmd, szCmdArgs, LAAW_OPTION_HIDDEN | LAAW_OPTION_WAIT); end;
... View more
Feb 25, 2011
09:19 AM
Hello, We install two executables that can work with C01 and DIB files and we want to associate both with those file types. When I attempt to use the Advanced Settings of a component to associate these file types with a second executable InstallShield complains about duplicate entries in the File Types table and puts the project in an awkward state. How can I associate a File Type with multiple executables?
... View more
Labels
- Labels:
-
InstallShield 2010
Oct 21, 2010
09:58 AM
Thank you, worked well enough. I put it into the OnEnd event. Canceling is not an issue as the registry isn't changed until after the user hits the install button and there is no way to cancel after that point.
... View more
Oct 19, 2010
01:51 PM
I have an InstallScript project and it is creating a registry setting at HKLM\Software\{Company Name}\{Product Name}\{Product Version} There is nothing in the registry editor nor the installscript to explain where this is coming from. I am guessing its part of the 'Default' registry which cannot be deleted. The 'Default' is empty. It looks like IS 2010 is pulling the information from the General settings. Is there a way to stop this behavior? Or am I missing something?
... View more
Labels
- Labels:
-
InstallShield 2010
Oct 19, 2010
01:36 PM
I have an IS 2010 Installscript project and I need to make the company name optional in the SdRegisterUser dialog. Fortunately someone else wanted to do this back in 2008 but the link to the KB article is broken and searching Flexera's database isn't coming up with anything. Can someone provide the document: Q101169 HOWTO: Modifying Sd Dialog Box Source Files TIA
... View more
Labels
- Labels:
-
InstallShield 2010
Feb 23, 2010
08:16 AM
I was wondering if and when a prereq module for .Net 4 would be available. We're migrating our projects to .Net 4 and its been fairly painless, except for the fact that we need to update our installer to require .Net 4. Other suggestions would be welcomed.
... View more
Labels
- Labels:
-
InstallShield 2009
May 22, 2009
12:08 PM
Thank you very much. I did have to use the NoFlags release flag in the configuration that did not include the framework prereq. I expected an empty list to work as well.
... View more
May 22, 2009
08:07 AM
Sorry if this has been answered before but searchs aren't yielding any useful information. My team wants to have two release configurations for our application. One that includes the ~260 mb .Net Framework 3.51 SP1 prereq and one that does not. Is there anyway to do this? Creating another project is not an option. If I can't do this what's the point of release configurations? I can control whether 2.0 is included but not any newer versions.
... View more
Labels
- Labels:
-
InstallShield 2009
May 22, 2009
07:32 AM
The following solution may help you. Keep in mind the call to managed code is going through COM interop and apparently the buffer for the string is filled with null characters. I forget how I found this, I may have popped up a Messagebox with the string. You'd see '\0' filling the buffer, which I believe is 512 or 1024 characters. I use the following method to strip the nulls: /// /// We are getting strings from InstallScript, via COM Interop, that are buffered /// with null characters such that the source string is 1024 chars, buffered with '\0'. /// This method's job is to clean up these extra nulls which cause various issues. /// /// The sourceString is the string we want to 'clean up' /// The 'cleaned up' string private string CleanupNulls(string sourceString) { if(sourceString == null) throw new ArgumentNullException("sourceString"); char[] trimArray = { '\0' }; return sourceString.Trim(trimArray); }
... View more
Mar 27, 2009
11:44 AM
Mmmmmkkkk. The problem was an invalid usage of ERROR_INSTALL_FAILURE. Move along folks, nothing to see here.
... View more
Mar 27, 2009
08:49 AM
I have a Basic MSI project in which I've added a dialog that appears after the ExecuteAction step in the sequence. The purpose of the dialog is to allow the person installing the application to create a user account in the application. The ValidateUserInfo CA validates the input and sets the CREATE_USER_VALIDATION_SUCCEEDED to "0" or "1" appropriately. The CA also returns ERROR_SUCCESS OR ERROR_INSTALL_FAILURE appropriately, though these return values appear to have no effect. The CREATE_USER_VALIDATION_SUCCEEDED property is cleared in the PropertyManager. The Events for the custom dialog's Next button are set as follows: DoAction | ValidateUserInfo | 1 EndDialog | Return | CREATE_USER_VALIDATION_SUCCEEDED = "1" The problem is that EndDialog always executes no matter the value of CREATE_USER_VALIDATION_SUCCEEDED. The question is: How do I get EndDialog to execute only when the condition is true? The reason I put the dialog after the ExecuteAction step is that I need to create the user after the Progress Dialog but before the SetupCompleteSuccess dialog, as explained in this KB article: http://kb.acresso.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&externalId=Q111299&sliceId= Thanks in advance.
... View more
Labels
- Labels:
-
InstallShield 2009
Latest posts by seamusmc
Subject | Views | Posted |
---|---|---|
1236 | Mar 25, 2011 11:19 AM | |
3092 | Feb 25, 2011 09:19 AM | |
532 | Oct 21, 2010 09:58 AM | |
3021 | Oct 19, 2010 01:51 PM | |
2332 | Oct 19, 2010 01:36 PM | |
1447 | Feb 23, 2010 08:16 AM | |
496 | May 22, 2009 12:08 PM | |
4244 | May 22, 2009 08:07 AM | |
844 | May 22, 2009 07:32 AM | |
420 | Mar 27, 2009 11:44 AM |
Activity Feed
- Posted Re: ProgramData Permissions on InstallShield Forum. Mar 25, 2011 11:19 AM
- Posted Associating a File Type with Multiple Executables on InstallShield Forum. Feb 25, 2011 09:19 AM
- Posted Re: InstallScript project automatically generating registry entry? on InstallShield Forum. Oct 21, 2010 09:58 AM
- Posted InstallScript project automatically generating registry entry? on InstallShield Forum. Oct 19, 2010 01:51 PM
- Posted Modify SdRegisterUser so that Company is optional on InstallShield Forum. Oct 19, 2010 01:36 PM
- Posted .Net 4 Prereq module for IS 2009 on InstallShield Forum. Feb 23, 2010 08:16 AM
- Posted Re: .Net Framework 3.51 SP1 and Release Configuration on InstallShield Forum. May 22, 2009 12:08 PM
- Posted .Net Framework 3.51 SP1 and Release Configuration on InstallShield Forum. May 22, 2009 08:07 AM
- Posted Re: C# dll not recognizing string parameter encoding from InstallScript on InstallShield Forum. May 22, 2009 07:32 AM
- Posted Re: EndDialong ControlEvent Conditions on InstallShield Forum. Mar 27, 2009 11:44 AM
- Posted EndDialong ControlEvent Conditions on InstallShield Forum. Mar 27, 2009 08:49 AM