This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Daniel_Dority
Level 6
- Revenera Community
- :
- About Daniel_Dority
Oct 21, 2009
05:05 PM
Darn... That definately throws me into a road block. The code that I am writing contacts another managed code classes from a vendor and then that contacts (based on the calling host) the appropriate unmanaged code. Since it isn't picking up the correct version it fails. My only solution using IS 2009 was to launch a console application for that but I had to create a configuration file on the fly. In order to make a the installer more intuitive, I wanted to automate more options for our customers but it seems like I cannot now because I have to be able to return a value. I may have to write my own installer using Windows Forms and the .NET framework for this one. I definately would like to see a version of InstallShield execute the managed custom actions based on the current system's architecture. I believe that will help developers create future installations for multiple systems with just one version of the installer rather than separate 32/64 bit versions. Thanks
... View more
Oct 20, 2009
04:48 PM
Does InstallShield 2010 execute .NET Custom Actions natively to the current operating system? I have a DLL written in C# .NET that is compiled targeting "Any CPU" which means it runs on both 32-bit and 64-bit installations. The catch is it references a DLL stored in the GAC that could be 32-bit or 64-bit depending on the current operating system. InstallShield 2009 would blow up because it explicity runs my DLL in 32-bit mode thus it isn't able to find the DLL in the GAC on 64-bit installations. Does InstallShield 2010 fix this issue? I see under the General Information for an IS Project the Template Summary but there is no version for "Any CPU". Just [Intel|Intel64||x64|Alpha] which doesn't neccessarily target every architecture. Thanks
... View more
Labels
- Labels:
-
InstallShield 2010
Oct 03, 2008
01:45 PM
I have a problem that a component is being installed even though the user or person installing the program didn't select the component to install. Why would this happen? Complete Install Type Feature 1: Component 1 - Required Component 2 - Required Component 3 - Required Component 4 - Installed Custom Install Type Feature 2: Component 1 - Required Component 2 - Required Component 3 - Required Component 4 - Optional (User my uncheck) No matter which install type they install, they always get component 4. It is not required and I have it marked that way. I give them the option to install it but it always exists. Why? InstallScript MSI Project is what I am using.
... View more
Labels
- Labels:
-
InstallShield 2009
Oct 02, 2008
03:09 PM
When I install an application using InstallShield, a InstallScript MSI Project, I want to disable the ability to "Modify" and "Repair" the installation. When I go to Project Properties > Enable Maintenance > False I get the following error: The setup has detected that no version of [Program] is installed. The specified command-line options require that the application be installed to continue. The setup will now terminate. Why? How does someone disable those two options. I want remove only. Thanks
... View more
Labels
- Labels:
-
InstallShield 2009
Sep 08, 2008
08:50 AM
As an update, I've multithreaded my installer and I was successfully able to pass back status updates along with percentage updates back to the installer without a note of hanging or not responding issues. This progress bar works like a charm!
... View more
Sep 05, 2008
06:14 PM
Thanks Robert while that suggestion didn't work, I was able to find a resource which does exactly what I need. This script creates a window and sends messages to it and creates a progress with increments at amounts that I specify. I need to see how this thing works in a loop, but damn dude I can now finalize my method in C# and pass status updates and percentage in a way that I envisioned. It is brilliant! Simply Brilliant! Reference to what I mean: http://helpnet.acresso.com/robo/projects/DevStudio9HelpLangref/LangrefSetStatusWindow_example.htm One thing that wasn't in there was to call Disable(STATUS); at the end to release the pop up.
... View more
Sep 05, 2008
04:22 PM
This thing seems to update the dialog for the user. Is there another type of object that can be used that does the same thing except it doesn't return a value or wait for user input?
... View more
Labels
- Labels:
-
InstallShield 2009
Sep 04, 2008
03:01 PM
From the research that I have been going through, I've concluded that using the progress bar inside of InstallShield is not able to work with my requirement. From what I've read, there is a window at which the progress bar can be called and that is only during an install. I need a progress bar to interact with "progress" of a different type instead of just files. So I've chosen to use a text approach which will look somewhat similar to other installs. Round 1 Steps Description Step 1: Doing Task1 Task 1 Details Step 2: Doing Task2 Task 1 Details Step 3: Doing Task3 Task 1 Details Round 2 [CODE] Steps Description Step 1: Doing Task1 [DONE] Task 2 Details Step 2: Doing Task2 Task 2 Details Step 3: Doing Task3 Task 2 Details[/CODE] And so on. At least as I work on this, I know that it will work and I can control every aspect of any and everything using my custom actions and controls within IS.
... View more
Sep 04, 2008
10:20 AM
So I assume nobody in this forum has ever used the progress bar. Yay me.
... View more
Sep 04, 2008
10:18 AM
Are you trying to throw the string array into a LIST object? If so you, you can do it like this: InstallShield if(nDomainList <= 0) then nDomainList = ListCreate(STRINGLIST); endif; StrGetTokens(nDomainList, Installer.GetStuff(), ","); C# [CODE] private string ToStringList(ArrayList TargetList) { return String.Join(",", (string[])TargetList.ToArray(typeof(string))); } [/CODE] In the case above, I joined an ArrayList into a single comma separated string and passed that back to InstallShield. You can modify the above to fit most collections and InstallShield uses them easily.
... View more
Sep 03, 2008
09:58 AM
Hey there, I've tried searching but nobody is doing what I need. Basically I want to use the progress bar within Installshield but I don't care about text. I just want to update the progress bar based off of a dynamic number. I've seen several examples but none of them explain anything well nor use a text-less approach. function CA_Progress(hInstall) // increment the progress bar NUMBER iResult; HWND hRec, hProgressRec; NUMBER nvBufferSize; begin hRec = MsiCreateRecord(3); hProgressRec = MsiCreateRecord(3); // Tell the installer to use explicit progress messages. MsiRecordSetInteger(hRec, 1, 1); MsiRecordSetInteger(hRec, 2, 1); MsiRecordSetInteger(hRec, 3, 0); iResult = MsiProcessMessage(hInstall, INSTALLMESSAGE_PROGRESS, hRec); //Specify that an update of the progress bar's position in //this case means to move it forward by one increment. MsiRecordSetInteger(hProgressRec, 1, 2); MsiRecordSetInteger(hProgressRec, 2, szSizeTickIncrement); MsiRecordSetInteger(hProgressRec, 3, 0); // The following tells the installer to send a message to update // the progress bar. iResult = MsiProcessMessage(hInstall, INSTALLMESSAGE_PROGRESS, hProgressRec); MsiCloseHandle(hRec); MsiCloseHandle(hProgressRec); end; For the above example. What the heck is "hInstall"? If I plan to only use the progress bar can I reduce the code to this? function CA_Progress(hInstall) // increment the progress bar NUMBER iResult; HWND hProgressRec; begin hProgressRec = MsiCreateRecord(3); //Specify that an update of the progress bar's position in //this case means to move it forward by one increment. MsiRecordSetInteger(hProgressRec, 1, 2); MsiRecordSetInteger(hProgressRec, 2, szSizeTickIncrement); MsiRecordSetInteger(hProgressRec, 3, 0); // The following tells the installer to send a message to update // the progress bar. iResult = MsiProcessMessage(hInstall, INSTALLMESSAGE_PROGRESS, hProgressRec); MsiCloseHandle(hProgressRec); end; Don't I need to pass the control ID for the progress bar somewhere? This whole thing to use a progress bar seems whack. There aren't any straight answers anywhere. I'm looking for exact steps please. Thanks.
... View more
Labels
- Labels:
-
InstallShield 2009
Aug 06, 2008
10:34 AM
Also as a note, I have successfully replicated this issue in Combo Boxes, and Text Boxes.
... View more
Aug 06, 2008
10:33 AM
STRING svUserName; Object InstallerClass; set InstallerClass = CoCreateObjectDotNet(SUPPORTDIR ^ "Installation.dll", "Installation.Wrapper" ); [Dialog Loop] case TextBoxControlID: CtrlGetText(DialogName, TextBoxControlID, svUserName) InstallerClass.SaveUserName(svUserName); [Dialog Loop End] ============================= C# namespace Installation { class Wrapper { private string m_Username = string.Empty; public void SaveUserName(string Username) { // Default value from InstallShield MessageBox.Show(Username); // Value from InstallShield after trimming Nulls. Username = Username.Replace("\0", string.Empty); MessageBox.Show(Username); m_Username = Username; } } } Nothing complex here.
... View more
Aug 05, 2008
10:23 PM
Hey there, Try this out, let me know how it works for you. InstallScript MSI Project Create a List, within the list add several string values with different lengths on a dialog. Example: Administrator Guest Within the code behind I add a call to C#. I pass the strings on by and evaluate the data. If I picked "Administrator" first, I get these results: Administrator - With the length of 1024 because it is padded with nulls. That is fine, I account for it. I made a method which replaces \0 with string.Empty. After I strip it, I get these results: Administrator - As the length of 13. Good it works. Back to the dialog, now choose Guest. Pass that value over and you get the following data. Guest - With the length of 1024 because it is padded with nulls. After I strip it of nulls, I get this result: Guestistrator It happens on EVERY CASE. Meaning, the longest string seems to be always present while any shorter string gets appended to the difference of any string that was chosen previously. This has to be a bug. I am doing nothing but a simple Systems.Windows.Forms.MessageBox.Show(InstallShieldData) in C#. Nothing is customized. As a temporary solution, I created a different method to strip nulls from InstallShield. I use a substring from the start to the first instance of a null, I pull the string I want out. It works. Or maybe I'm doing something wrong. Any insight would be great! Edit: private string TrimNulls(string s) { if(s == null) { return string.Empty; } if(s.IndexOf("\0") != -1) { return s.Substring(0, s.IndexOf("\0")); } else { return s; } }
... View more
Labels
- Labels:
-
InstallShield 2009
Latest posts by Daniel_Dority
Subject | Views | Posted |
---|---|---|
1017 | Dec 23, 2009 09:28 AM | |
2662 | Dec 22, 2009 01:56 PM | |
2150 | Dec 21, 2009 05:30 PM | |
1068 | Dec 18, 2009 09:27 AM | |
2030 | Dec 17, 2009 04:22 PM | |
1470 | Oct 29, 2009 10:47 AM | |
1470 | Oct 28, 2009 01:36 PM | |
1470 | Oct 28, 2009 11:56 AM | |
2505 | Oct 27, 2009 02:41 PM | |
985 | Oct 27, 2009 02:06 PM |
Activity Feed
- Posted Re: Trim Function on InstallShield Forum. Dec 23, 2009 09:28 AM
- Posted Trim Function on InstallShield Forum. Dec 22, 2009 01:56 PM
- Posted Feature Events Creation Bug? on InstallShield Forum. Dec 21, 2009 05:30 PM
- Posted Re: Controls not updating on InstallShield Forum. Dec 18, 2009 09:27 AM
- Posted Controls not updating on InstallShield Forum. Dec 17, 2009 04:22 PM
- Posted Re: Multiple Instance Tutorial Anywhere? on InstallShield Forum. Oct 29, 2009 10:47 AM
- Posted Re: Multiple Instance Tutorial Anywhere? on InstallShield Forum. Oct 28, 2009 01:36 PM
- Posted Re: Multiple Instance Tutorial Anywhere? on InstallShield Forum. Oct 28, 2009 11:56 AM
- Posted Multiple Instance Tutorial Anywhere? on InstallShield Forum. Oct 27, 2009 02:41 PM
- Posted Re: Enabling dialog controls from checkbox on InstallShield Forum. Oct 27, 2009 02:06 PM
- Posted Re: InstallShield Installation on InstallShield Forum. Oct 27, 2009 11:08 AM
- Posted InstallShield Installation on InstallShield Forum. Oct 27, 2009 10:48 AM
- Posted Re: InstallShield Architecture Question on InstallShield Forum. Oct 26, 2009 10:49 AM
- Posted Re: InstallShield Architecture Question on InstallShield Forum. Oct 23, 2009 08:09 PM
- Posted Re: InstallShield Architecture Question on InstallShield Forum. Oct 23, 2009 09:10 AM
- Posted Re: InstallShield Architecture Question on InstallShield Forum. Oct 21, 2009 05:05 PM
- Posted InstallShield Architecture Question on InstallShield Forum. Oct 20, 2009 04:48 PM
- Posted Features and Components on InstallShield Forum. Oct 03, 2008 01:45 PM
- Posted Enable Maintenance on InstallShield Forum. Oct 02, 2008 03:09 PM
- Posted Re: WaitOnDialog on InstallShield Forum. Sep 08, 2008 08:50 AM
Contact Me
Online Status |
Offline
|
Date Last Visited |
Mar 18, 2019
12:11 PM
|