Jun 15, 2009
03:35 PM
Thanks.. _WinSubShowWindow() seems to be the same as ShowWindow(). I still have to call GetDlgItem() to use it. hCtrl = GetDlgItem(hwndDlg, INSTALL_TYPE_CHECK_INSTALL_CONSOLE); //_WinSubShowWindow(hCtrl, 0); ShowWindow(hCtrl, 0); Is there a list somewhere of all API's in InstallShield? If there were it would save a lot of time just searching for Enable and seing what comes up.. Kind of like VB6 and their TXT file with all the Windows API Declarations.. That would be awsome.
... View more
Jun 15, 2009
03:25 PM
I found how to use it.. hwndItem = GetDlgItem( hwndDlg, nControlID ); So, that seems a lot of extra steps. Seems to me that _WinSubEnableControl would be a better use, or is it? I'm still searching for the Show Hide version of _WinSubEnableControl
... View more
Jun 15, 2009
03:09 PM
Searching through looking for EnableWindow I saw someone post about _WinSubEnableControl(). That seems to work nicely. Is there a difference between the two and is there are reason to use one over the other? _WinSubEnableControl (hwndDlg, INSTALL_TYPE_CHECK_INSTALL_CONSOLE, 0); I can't seem to get EnableWindow to work. I'm unable to find any example code so I know it's params, but I guessed based on ShowWindows it (HWND, 0/1). Doesn't error, but doesnt seem to do anything either. Is there a version of _WinSubEnableControl for Show and Hide as well?
... View more
Jun 15, 2009
02:31 PM
This is an EXE, not an MSI.. I've looked through help and I guess I'm just missing it. How do I change a control's property/attribute? For example I have check boxes and radio buttons. I'm checking registry and if there is a specific value, I'm wanting to disable one of the check boxes and one of the radio buttons. I see they both have an enable properties, but I'm not finding how to change them on the fly. I found SetProperty, but that doesn't seem to be a function so I'm unsure how to use it. Would have been nice if the third parm of CtrlSetState() was an INT instead of a BOOL so that it could handle more than just check state.
... View more
Labels
- Labels:
-
InstallShield 2009
Jun 12, 2009
05:07 PM
That sounds like a winner.. So many API's.. I can't keep up.
... View more
Jun 12, 2009
04:27 PM
(1) Perfect, thank you. I looked for Font APIs, but guess I looked up the wrong thing.
... View more
Jun 12, 2009
04:17 PM
Are you having problems with opening a file, loading a combo, or both? At a quick glance, there are methods called OpenFile() and GetLine(). There are also methods called ListCreate(STRINGLIST) & ListAddItem() to add them to a the list var, then use CtrlSetList() to set the values to a combobox. It would look something like this: szExampleFile = "Readme.txt"; szExampleDir = "C:\\Tester"; OpenFileMode (FILE_MODE_NORMAL); if (OpenFile (nvFileHandle, szExampleDir, szExampleFile) < 0) then MessageBox ("OpenFile failed.", SEVERE); abort; endif; listID = ListCreate(STRINGLIST); if (listID = LIST_NULL) then MessageBox ("Unable to create list.", SEVERE); abort; endif; while GetLine (nvFileHandle, svLine) = 0 ListAddString (listID, svLine, AFTER); endwhile; nResult = CtrlSetList (szDialogName, RES_DIALOG_COMBOBOX, listID); ListDestroy (listID); Hope that helps.
... View more
Jun 12, 2009
03:49 PM
Couldnt you just use the following: set filesys=CreateObject("Scripting.FileSystemObject"); if(IsObject ( filesys )) then if(filesys.FolderExists("c:\\tester\\aa")) then filesys.CopyFolder("c:\\tester\\aa", "c:\\tester\\bb"); MessageBox("copy success", INFORMATION); else MessageBox("c:\\tester\\aa does not exist.", SEVERE); endif; else MessageBox("Failed to create FSO", SEVERE); endif;
... View more
Jun 11, 2009
11:49 AM
----------------------------------------- BUG: ----------------------------------------- (1) I'm an long time C/C++ developer from the original DOS days. So I'm a quick key type user. I use shortcuts like they are going out of style. I notice InstallShield 2009 crashes a lot, not on compile, but right after I use a the keyboard to execute a menu command. Meaning, when I switch from one window to another, I don't click on Window, then click on setup.rul. I use Alt-W then press 1 with my 10 key, because it's right by my mouse. I do this very quickly when going from one script to another. I would say 10% of the time, I crash InstallShield while doing this. I also have an old tendency to hit Alt-F then "S" to save every minute or so, so if power in the building goes out, I don't loose much, which has also crashed InstallSheild several times. Not that the power goes out in the building ever, but it could, just precaution. Are these known issues and if not, can I get this on the bugs list? ----------------------------------------- NOT IMPLIMENTED OR END USER: ----------------------------------------- (1) With regular dialogs, where is the font changer? I went to change the font to a larger font and there's no font property for the text controls. I found a function called SetFont, but after running through help and testing it, I found that's only for the Background font, not for dialog fonts. (2) When I have a custom dialog with an InstallShield Olive skin, I press Next, then Back, I loose the color and the graphics on the custom dialog. They just go away.. The dialog seems to still be functioning normal out side of the colors and skin. Am I missing something?
... View more
Labels
- Labels:
-
InstallShield 2009
Jun 11, 2009
10:05 AM
After creating this custom dialog, get my results, I call EndDialog().. However if they hit back within this custom dialog, then next, the dialog isn't the skin dialog anymore. It looses all graphics and color, however it has all the same information on it. What did I do wrong?
... View more
Jun 11, 2009
09:33 AM
I get what the Class is for now. To help clean up the code a bit. Call one function instead of handling the custom dialog from the main function. Thanks for all your help.
... View more
Jun 08, 2009
02:33 PM
I've created a dialog example for those that were trying to follow this and are just as, if not more confused. I did find I didn't need the CustomDialog class at all. Wasn't being used for nothing. I deleted it from the project and everything seem to work the same way. I've added Images, Step 1 through 7. Just screen shots. http://www.chizl.com/chizl/downloads/InstallShield_MyDialogTest.zip - (740kb) I'll most likely will write something up later with more detail for people to see, because now I'm going to get quested by coworkers etc.. Hopefully this will help someone else going through the same issues..
... View more
Jun 08, 2009
11:48 AM
I think I got it.. doh.. Added ISUSER to the EzDefineDialog call. Seems help on EzDefineDialog says I can leave it blank and IS will figure it out, but I guess it doesn't. I want to thank you for spending so much time with this. Talking to someone through this helps. I just about gave up on all of it.
... View more
Jun 08, 2009
11:42 AM
Do you know where I can find an example of a simple script that has a custom dialog with 2 radio buttons and a checkbox and the code on how to access them? If that existed, I could figure out my missing link.
... View more
- « Previous
- Next »
Latest posts by gavin_landon
Subject | Views | Posted |
---|---|---|
2308 | Jul 06, 2009 05:48 PM | |
2308 | Jul 06, 2009 05:46 PM | |
2308 | Jul 06, 2009 04:31 PM | |
2793 | Jul 06, 2009 04:03 PM | |
2793 | Jul 02, 2009 03:04 PM | |
2794 | Jul 01, 2009 03:26 PM | |
2794 | Jul 01, 2009 03:11 PM | |
2794 | Jul 01, 2009 10:22 AM | |
2794 | Jul 01, 2009 09:21 AM | |
2794 | Jun 30, 2009 05:23 PM |
Activity Feed
- Posted Re: Custom Dialogs (DialogID) on InstallShield Forum. Jul 06, 2009 05:48 PM
- Posted Re: Custom Dialogs (DialogID) on InstallShield Forum. Jul 06, 2009 05:46 PM
- Posted Re: Custom Dialogs (DialogID) on InstallShield Forum. Jul 06, 2009 04:31 PM
- Posted Re: Custom Dialogs (DialogID) on InstallShield Forum. Jul 06, 2009 04:03 PM
- Posted Re: Custom Dialogs (DialogID) on InstallShield Forum. Jul 02, 2009 03:04 PM
- Posted Re: Custom Dialogs (DialogID) on InstallShield Forum. Jul 01, 2009 03:26 PM
- Posted Re: Custom Dialogs (DialogID) on InstallShield Forum. Jul 01, 2009 03:11 PM
- Posted Re: Custom Dialogs (DialogID) on InstallShield Forum. Jul 01, 2009 10:22 AM
- Posted Re: Custom Dialogs (DialogID) on InstallShield Forum. Jul 01, 2009 09:21 AM
- Posted Re: Custom Dialogs (DialogID) on InstallShield Forum. Jun 30, 2009 05:23 PM
- Posted Custom Dialogs (DialogID) on InstallShield Forum. Jun 30, 2009 05:18 PM
- Posted Re: Restart an application- Installshield 2009 on InstallShield Forum. Jun 22, 2009 10:44 AM
- Posted Re: Executing a Batch file on InstallShield Forum. Jun 19, 2009 09:34 AM
- Posted Change default images on dialogs on InstallShield Forum. Jun 18, 2009 05:57 PM
- Posted Re: Restart an application- Installshield 2009 on InstallShield Forum. Jun 18, 2009 04:20 PM
- Posted Re: Restart an application- Installshield 2009 on InstallShield Forum. Jun 18, 2009 11:55 AM
- Posted Re: Restart an application- Installshield 2009 on InstallShield Forum. Jun 18, 2009 11:35 AM
- Posted Re: Restart an application- Installshield 2009 on InstallShield Forum. Jun 17, 2009 05:40 PM
- Posted Re: How to install MS SQL 2005 in this case? on InstallShield Forum. Jun 17, 2009 05:28 PM
- Posted Re: How to install MS SQL 2005 in this case? on InstallShield Forum. Jun 17, 2009 05:25 PM