Aug 26, 2011
02:31 PM
Four slashes also condenses down to a single slash. "////" goes to "/"
... View more
Jun 11, 2009
01:58 PM
I am using an InstallScript MSI and am having problems getting property values from MsiGetProperty inside my InstallScript. Is there some reason that would explain it because it makes no sense to me. nvBufferSize = MAX_PATH; MsiGetProperty(ISMSI_HANDLE, "SUPPORTDIR", svSupportDir, nvBufferSize); Those lines in a function called by a custom action work. However, those same lines inside of a function called from FirstUIAfter doesn't return any thing. However, the INSTALLDIR property has a value in FirstUIAfter. I have seen this happen with other values too. And my biggest frustration is that there doesn't seem to be any rhyme or reason to it. What am I missing?
... View more
Labels
- Labels:
-
InstallShield 2008
Aug 06, 2008
12:09 PM
I'm using IS 2008 and an InstallScript MSI project. I have a tree of directories I want to create. They are initially empty (at install time). I have a component set up for the top level and then use dynamic file linking to pick up the rest of the tree. However, when installing the empty folder are either not created or removed. Is there a way to force these empty folders to be created? If I create a component for each sub directory (not really what I want to do) and set it's destination, would that force them to be created?
... View more
Labels
- Labels:
-
InstallShield 2008
Jul 31, 2008
04:55 PM
nlamka wrote: I have the same issue. My sample/test code is very simple nResult = UseDLL(SUPPORTDIR^"TastingMasterGacUtil.dll"); if (0 = nResult) then try set GacUtil = DotNetCoCreateObject( SUPPORTDIR^"TastingMasterGacUtil.dll", "TastingMasterGacUtil.GacUtil", ""); GacUtil.Add("Test"); catch MessageBox(Err.Number, SEVERE); GacUtil = NULL; endcatch; UnUseDLL( SUPPORTDIR^"TastingMasterGacUtil.dll"); endif; What I get is the same -2147219705 error code on return. Anyone know how this really works? Neil Try using variables in the call to DotNetCoCreateObject. I had string constants in there (like "junk.dll") and was getting a vague error. I changed to just using variables like the top example in this thread and it worked. Also, for IS 2008 (maybe 12 too) you don't need UseDLL. As for the issue on top, I don't know. I would just verify your names. My DLL name only has a single "." in it, not two. Maybe try and rename your DLL and see if that helps.
... View more
Latest posts by jharveyjr
Subject | Views | Posted |
---|---|---|
1456 | Aug 26, 2011 02:31 PM | |
630 | Jun 11, 2009 03:02 PM | |
1871 | Jun 11, 2009 01:58 PM | |
3391 | Aug 06, 2008 12:09 PM | |
997 | Jul 31, 2008 04:55 PM |
Activity Feed
- Posted Re: IA bug: multiple slashes get reduced to single slash on InstallAnywhere Forum. Aug 26, 2011 02:31 PM
- Posted Re: MsiGetProperty inconsistencies on InstallShield Forum. Jun 11, 2009 03:02 PM
- Posted MsiGetProperty inconsistencies on InstallShield Forum. Jun 11, 2009 01:58 PM
- Posted Force empty directories to be created on InstallShield Forum. Aug 06, 2008 12:09 PM
- Posted Re: DotNetCoCreateObject issues on InstallShield Forum. Jul 31, 2008 04:55 PM