cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ChristopheOce
Level 7

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
Labels (1)
0 Kudos
(2) Replies
esiemiat
Level 9

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".
0 Kudos
ChristopheOce
Level 7

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
0 Kudos