Feb 19, 2008
04:22 AM
For those who are interested... I found the solution to this problem. The initialisation of the RTF had nothing to do with the problem... this was correct. The problem is to encode the decimal value of the (chinese) character into RTFCode. For chinese characters, the solution is Sprintf(Result, "\\u%d?", n) where n is the decimal value of the chinese character. So a possible function could look like this: function STRING RTFEncodeChar(ch) INT n; STRING Result; begin n = ch; if (n < 0x020) then switch (n) case 0: Result = ""; case 9: Result = "\\tab "; case 10: Result = "\\par "; case 13: Result = ""; default: Sprintf(Result, "\\'%2lx", n); endswitch; elseif (n > 0x07f) && (n < 0x0ff) then Sprintf(Result, "\\'%2lx", n); elseif (n > 0x0ff) && (n < 0xffff) then Sprintf(Result, "\\u%d?", n); else if ((ch == "\\") || (ch == "{") || (ch == "}")) then Sprintf(Result, "\\'%2lx", n); else Result = " "; Result[0] = ch; endif; endif; return Result; end;
... View more
Feb 13, 2008
02:16 AM
MichaelU wrote: I don't know much about RTF itself, but \ansicpg1252 looks like it's specifying the Western European codepage which will be unable to handle Chinese characters. Per a quick search on "2052 codepage" it looks like you might want to try 936 or 950 instead of 1252. Michael, I tried it already with the codepage nr. 936 but this still doesn't display the chinese RTF correctly. I will need to take a furthur look into this... Thanks for the information however.
... View more
Feb 12, 2008
03:26 AM
I have a custom dialog to summary the selections the user has made in the UI. This dialog contains a Scrollable text control. In this control, I want to display RTF text. This works fine for all languages except for Chinese(Traditional/Simplified). This has probably something to do with my RTF Initialisation which should be modified when running on a Chinese OS but I don't know what to change. My current initialization looks like this: function void RTFInit(Rtf) begin Rtf->Indent = 0; Rtf->Contents = "{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033" + "{\\colortbl;\\red0\\green0\\blue0;\\red128\\green128\\blue128;}" + "{\\fonttbl{\\f0\\fswiss\\fcharset0 Arial;}}" + "\\viewkind4\\uc1\\pard\\f0\\fs18"; Rtf->InText = FALSE; end; I've already tried to modify the deflang1033 parameter into 'deflang2052' or 'deflang1028' but this doesn't work. My RTF text in the control isn't displayed correctly(see attached screenshot). Does someone knows how that I need to modify the RTF initialisation string to display the text correctly on Chinese OS?
... View more
Labels
- Labels:
-
InstallShield 2008
Feb 01, 2008
02:20 AM
Hi, just wanted to tell you that I found the problem. I had a lot of components into my project who contains dll's. When originally creating this project, I setted the properties of these components to 'always replace'. After a while, new dll's where added and I forgot the set this always replace property. No problem if the versionnumber of the dll's was fine but they delivered my sources with wrong versionnumbers, resulting in the fact that during a major upgrade not all dll's needed for the application where copied. When starting the application, the repair mode was triggered to retrieve the missing files from the installation package.
... View more
Jan 09, 2008
06:15 AM
I don't know if this is also a problem in Installshield 2008. I've this problem with InstallShield 11 projects... didn't tried it yet with InstallShield 2008 projects. I've installed version 1 of my product. This creates a shortcut on the desktop. After that, I upgrade my version 1 to version 2 of the product(MAJOR Upgrade). After the upgrade, I remove or rename the folder from where I ran the upgrade(version 2). Afterwards, when I click on the shortcut to start the application, the installer seems to start and couple of seconds afterwards, a dialog is shown telling that it cannot find the source. This dialog gives you the ability to browse to the source. When I don't remove or rename the folder from where I ran the upgrade, the installer seems to start and configures a couple of things... This happens only when you start the application via the shortcut the first time after the upgrade. :confused: Also, after a clean install, all this doesn't happen... So it seems to be upgrade related. Can someone explain my what triggers this behaviour? I've never seen this behaviour before after starting the application after an upgrade. Maybe a certain change invokes this problem but I don't know where to search. Any help is appreciated... 🙂
... View more
Labels
- Labels:
-
InstallShield 2008
Dec 05, 2007
02:18 AM
I'm already using different InstallShield versions for about 10 years now but what they did with InstallShield 2008... it gives me headache! :mad: For our previous productrelease, we used InstallShield 11 Premier. No real problems with this one. It was rather easy to debug, the custom actions were executed quickly, etc... Since we needed to support Windows VISTA in our next product release, we decided to update to InstallShield 2008. I must admit, the migration from InstallShield 11 to InstallShield 2008 was no problem(all issues found where documented and could be solved rather easily). After that the problems started. First of all, try to debug remotely. We have a project with 40+ Custom Actions(less Custom Actions is not a solution because we have 10 custom dialogs with 7 buttons on it. Every click on such a button needs to trigger 1(or 2) custom actions. All actions that needs to happen when clicking on a button on such a dialog is calculated at run time). For every custom action, you need to point to the location of the script files. Can they not store where I keep my script files when I selected the path the first time. I'm not going to move my script files during debugging?! :rolleyes: Another thing: our installer takes 30+ minutes to install. I've changed a function(called via a custom action) at the end of the installer and I want to verify if this works. With Installshield 11 you say run to(or set a breakpoint) and you go to have a coffee. Not with InstallShield 2008, since it needs to know for every CA where the script files are. Also, since they initialize and deinitialize each custom action seperately, it slows down our installer with 50%!!! It takes 2seconds for a custom action to init and deinit. You understand my frustration?! I always think that they improve when making a new release but now it is totally not the case. This will increase my development/testing time with 25%! My boss doesn't understand it. :rolleyes:
... View more
Labels
- Labels:
-
InstallShield 2008
Dec 03, 2007
02:34 AM
Robert, Ok, i understand where and how to schedule the rollback action. But as my custom action removes a folderstructure, what should i initially do the be able to execute the rollback action? Should I backup the whole folderstructure myself before I remove it in the custom action or...? And I assume if no rollback occurs, I should cleanup the backed up folder but where do I do that...?
... View more
Nov 30, 2007
07:56 AM
During installation time of my product, I create an empty folderstructure. The application I install, puts some files in there while it is running. During complete uninstall, this folderstructure needs to be cleaned up/removed completely. Since the uninstaller only uninstalls the files/folders it has copied during installation time, I've created a deferred InstallScript custom action to take care of this. I've read that every deferred custom action should have its rollback counterpart. Any idea what this rollback custom action needs to do and where it needs to be sequenced? Should it be rollback execution or rollback execution in system context?
... View more
Labels
- Labels:
-
InstallShield 2008
Nov 30, 2007
02:29 AM
Have you been editing straight into the reglocator table? I've seen the same when editing entries from within the reglocator table.
... View more
Nov 30, 2007
02:02 AM
Go to the dialog editor and click on the behaviour section of a certain dialog. Go to the events tab of a certain button on your dialog. You can create a DoAction and set as argument the Custom Action that you want to call. You need also to specify on which condition the CA needs to be executed. eg. NEXT button DoAction CA_ValidateHostName 1
... View more
Nov 15, 2007
02:55 AM
Robert, thx... this works... what the sequence of the code execution is concerned. Within this installscript I want to do this: The installscript CA needs only to be executed during full uninstall(REMOVE~="ALL"). I read out a property("K_SUM_DATA"). This property contains a folderpath that is stored within the registry. So I have defined a systemsearch to fill this property with the folderpath value. However, when I want to read out the value to use in my CA, the property can not be read out, it seems to be empty. I suppose that the systemsearch is executed during a full uninstall so that the property K_SUM_DATA is filled correctly but I can probably not access the value of the property anymore within a deferred CA in the execute sequence. Correct? Do you know another way to get this working?
... View more
Nov 14, 2007
05:21 AM
The installer I've created installs a Windows NT Service. This WindowsNT Service creates a logfile within a folderstructure that I also create during installation. This logfile is kept in use as long as the service is running. I've created a custom action to remove this folderstructure during REMOVE="ALL" mode because extra files and folders are added there during program execution. My question: the WindowsNT Service is removed automatically during uninstall but when? With other words, where do I need to schedule my cleanup Custom Action within the execute sequence and which type of execution do I need to use(immediate, commit, deferred?). I've tried to schedule the cleanup Custom Action after removefolders within the execute sequence and use immediate execution but at that moment, the service still seems to exist, so keeping some logfiles in use....
... View more
Labels
- Labels:
-
InstallShield 2008
Nov 09, 2007
04:41 AM
I found the problem... so maybe it is usefull to post here the solution. The problem is that using system search to read out DWORD values, add a '#' sign in front of the value... such like '#1'. (see reglocator table help) When I set the value of the corresponding radiobuttons to '#0' and '#1'... it selects the corresponding radiobutton.
... View more
Nov 09, 2007
01:58 AM
I've a dialog where I created a RadioButtonGroup. The property SUM_ROLE is linked to it. This property is automatically added within the property list. In this RadioButtonGroup I've created 2 radiobuttons. The first one with Value '0' and the second one with Value '1'. For setting the default selected radiobutton, I want to rely on a registry entry. I search on the registry name value "Main" in the registry key HKLM\Software\ \Setup. This name value "Main" can have a DWORD value of 0 or 1. I've defined a systemsearch that stores the value of this Name entry within the property SUM_ROLE. I thaught that this should be ok, however... no radiobutton is selected by default when I do this. Removing this system search and changing the value of the SUM_ROLE prop to 0 or 1 selects the correct radiobutton. Any idea what is going wrong here? Is the DWORD value wrongly interpreted? Do I need to remove the SUM_ROLE prop out of the property list before adding the system search....? Regards, Christoph
... View more
Labels
- Labels:
-
InstallShield 2008
- « Previous
- Next »
Latest posts by Christoph
Subject | Views | Posted |
---|---|---|
166 | Mar 13, 2023 09:41 AM | |
321 | Jan 23, 2023 09:56 AM | |
342 | Jan 23, 2023 05:08 AM | |
466 | Sep 26, 2022 06:41 AM | |
541 | Sep 14, 2022 03:55 PM | |
546 | Sep 14, 2022 09:59 AM | |
553 | Sep 14, 2022 08:33 AM | |
172 | Jul 13, 2022 01:52 AM | |
181 | Feb 10, 2022 02:33 AM | |
599 | Jun 03, 2021 06:36 AM |
Activity Feed
- Posted Disable/Enable Next-button in a dialog based on RadioButtonGroup selection on InstallShield Forum. Mar 13, 2023 09:41 AM
- Posted Re: SigningHelper: error 0x80070056 while attempting to sign file on InstallShield Forum. Jan 23, 2023 09:56 AM
- Posted Re: SigningHelper: error 0x80070056 while attempting to sign file on InstallShield Forum. Jan 23, 2023 05:08 AM
- Tagged Re: SigningHelper: error 0x80070056 while attempting to sign file on InstallShield Forum. Jan 23, 2023 05:08 AM
- Tagged Re: SigningHelper: error 0x80070056 while attempting to sign file on InstallShield Forum. Jan 23, 2023 05:08 AM
- Tagged Re: SigningHelper: error 0x80070056 while attempting to sign file on InstallShield Forum. Jan 23, 2023 05:08 AM
- Tagged Re: SigningHelper: error 0x80070056 while attempting to sign file on InstallShield Forum. Jan 23, 2023 05:08 AM
- Tagged Re: Custom, unique logfile name on InstallShield Forum. Sep 26, 2022 06:42 AM
- Posted Re: Custom, unique logfile name on InstallShield Forum. Sep 26, 2022 06:41 AM
- Posted Re: Custom, unique logfile name on InstallShield Forum. Sep 14, 2022 03:55 PM
- Posted Re: Custom, unique logfile name on InstallShield Forum. Sep 14, 2022 09:59 AM
- Posted Custom, unique logfile name on InstallShield Forum. Sep 14, 2022 08:33 AM
- Posted 64-bit support Installscript custom actions on InstallShield Forum. Jul 13, 2022 01:52 AM
- Posted Clicking 'Next' on dialog and auto-disable on InstallShield Forum. Feb 10, 2022 02:33 AM
- Posted Re: How to deselect features AFTER Costfinalize on InstallShield Forum. Jun 03, 2021 06:36 AM
- Posted How to deselect features AFTER Costfinalize on InstallShield Forum. Jun 03, 2021 03:54 AM
- Posted Re: IS2020 R2 Evaluation: Build error -7371 on InstallShield Forum. Aug 28, 2020 08:46 AM
- Posted IS2020 R2 Evaluation: Build error -7371 on InstallShield Forum. Aug 28, 2020 08:26 AM
- Posted Re: Setup.exe 64bit on InstallShield Forum. Feb 19, 2020 02:05 AM
- Kudoed Setup.exe 64bit for ESPARIAT. Oct 22, 2019 04:03 AM