StringTools ToLower

30 views
Skip to first unread message

Alex Ustas

unread,
Jun 8, 2015, 2:04:16 PM6/8/15
to msi...@googlegroups.com
Hi! Where is example StringTools ToLower in SilentInstall?

<CustomAction Id="StringToLower" BinaryKey="StringTools" DllEntry="String_ToLower" Execute="immediate" Return="check" />

My brain is hack help me please )

Daniel Doubrovkine

unread,
Jun 9, 2015, 8:22:49 AM6/9/15
to msi...@googlegroups.com
I don't have one readily tested, but you need to set STRING_TOLOWER_INPUT, there's an example in https://github.com/dblock/msiext/blob/master/src/Demos/StringToolsMsi/StringToolsReplaceUI.wxi#L13 for how to replace something, it's very similar. If you're not doing this in a UI, it's the same thing just invoke these in the right order.

Feel free to contribute a demo, if you start something and can't get it to work I can help you finish it.

--
You received this message because you are subscribed to the Google Groups "msiext" group.
To unsubscribe from this group and stop receiving emails from it, send an email to msiext+un...@googlegroups.com.
To post to this group, send email to msi...@googlegroups.com.
Visit this group at http://groups.google.com/group/msiext.
For more options, visit https://groups.google.com/d/optout.



--

Alex Ustas

unread,
Jun 9, 2015, 12:05:23 PM6/9/15
to msi...@googlegroups.com
Thanks, worked is all right ?

        <CustomAction Id="StringToLower" BinaryKey="StringTools" DllEntry="String_ToLower" Return="check" />
        <CustomAction Id="SetStringToLower" Property="STRING_TOLOWER_INPUT" Value="[%COMPUTERNAME].[%USERDNSDOMAIN]" />
        <CustomAction Id="SetFullyQualifiedDomainName" Property="FullyQualifiedDomainName" Value="[STRING_TOLOWER_RESULT]" />

        <InstallExecuteSequence>
            <RemoveExistingProducts Before="InstallInitialize" />
            <Custom Action="AlreadyUpdated" After="FindRelatedProducts">SELFFOUND</Custom>
            <Custom Action="NoDowngrade" After="FindRelatedProducts">NEWERFOUND</Custom>
            <Custom Action="SetStringToLower" Before="CostInitialize">Not Installed</Custom>
            <Custom Action="StringToLower" After="SetStringToLower">1</Custom>
            <Custom Action="SetFullyQualifiedDomainName" After="StringToLower" />
        </InstallExecuteSequence>

Daniel Doubrovkine

unread,
Jun 9, 2015, 12:31:43 PM6/9/15
to msi...@googlegroups.com
Yep. I would rename SetStringToLower to something like SetFullyQualifiedDomainNameToLowercase, cause you'll have other things you want to lowercase next time.

--
You received this message because you are subscribed to the Google Groups "msiext" group.
To unsubscribe from this group and stop receiving emails from it, send an email to msiext+un...@googlegroups.com.
To post to this group, send email to msi...@googlegroups.com.
Visit this group at http://groups.google.com/group/msiext.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages