I am new to Install Shield(Install Script), so apologies in advance if my question is repetitive.
Is there any function in install shield to create random password ? or a code snippet to achieve the same.
Thanks in advance for the help :)
I am new to Install Shield(Install Script), so apologies in advance if my question is repetitive.
Is there any function in install shield to create random password ? or a code snippet to achieve the same.
Thanks in advance for the help :)
InstallScript doesn't include anything like that built-in. You would need to write your own function to implement the feature. As far as I can see you have the options:
You may prototype Windows random generator functions in your script and call them to generate random number. Probably you would need to convert this number into the "password", if this is something else than number. To prototype Windows functions you would need to include winapi.h
and prototype lines for rand()
and seed generating srand()
functions. Something like ...
prototype cdecl VOID MSVCRT.srand(INT);
prototype INT MSVCRT.rand();