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.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- install script + function split ?!
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 01, 2007
09:47 AM
install script + function split ?!
Hi,
I have a basic msi project and a moment i have a string as :
fdfdkfjljfldsf;dskdjsdksd
How i can split this string [;] for to have two string !
i've look on the documentation for to find a function split in installscript but i'"ve see nothing !
ok i can create a vbscript but i would like to be sure that doesn't exist something in installscript before 🙂 !
Thanks in advance
Christophe
I have a basic msi project and a moment i have a string as :
fdfdkfjljfldsf;dskdjsdksd
How i can split this string [;] for to have two string !
i've look on the documentation for to find a function split in installscript but i'"ve see nothing !
ok i can create a vbscript but i would like to be sure that doesn't exist something in installscript before 🙂 !
Thanks in advance
Christophe
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 01, 2007
10:26 AM
There are a couple of ways to achieve this in InstallScript.
You could use StrFind to determine the location of the ';' and then use StrSub to extract the two strings using that location. Your other option is to use StrGetTokens to do this for you, and then loop through the string list access the strngs. More information on string functions can be found in the InstallShield help library under "String Functions".
You could use StrFind to determine the location of the ';' and then use StrSub to extract the two strings using that location. Your other option is to use StrGetTokens to do this for you, and then loop through the string list access the strngs. More information on string functions can be found in the InstallShield help library under "String Functions".
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 03, 2007
04:16 AM
Hi Eric,
That's works fine !
I've use strfind for to know the location of my coma (,)
and after i 've use strSub for extract my two string !
I'm a programer in c# and before to post my question i have searched on the help after a method split as the language c# 🙂
Really thanks for your help
Christophe
That's works fine !
I've use strfind for to know the location of my coma (,)
and after i 've use strSub for extract my two string !
I'm a programer in c# and before to post my question i have searched on the help after a method split as the language c# 🙂
Really thanks for your help
Christophe
![](/skins/images/8C9D13A71C7F7695F3262372C0172D68/responsive_peak/images/icon_anonymous_message.png)