Re: Changing the SMS exe file name based on a compiler variable?



Well I'm not 100% sure, since I haven't done it like you are describing
before.

I have done a test though (see attached)

Basically I defined a compiler variable and then on the "Settings" tab of
the installation properties I put %_TEST_%.exe

When I compiled it, it prompts me for the variable (by default "dev") and
then creates the .exe out put with the name of it.

I'm sure there is probably some predefined compiler variable for exe name,
but I couldn't find it?

Terry

PS - you'll need to rename to ipf

<TDavidson@xxxxxxxxxxxxxxxxx> wrote in message
news:1138918653.342639.140390@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Based on the value of a compiler variable, I would like to modify the
name of the executable that is created.

Example:
Compiler variable: _ENVIRONMENT_
SMS package name: package.ipf

If _ENVIRONMENT_ = "DEV" then I would like to be able to tell SMS
to create the executable name as "DEVpackage.exe" instead of the
default "package.EXE"

Am I missing something obvious? Any ideas? Also, could I put the
executable and a different directory based on the compiler variable?
I'd like this flexibility so I could maintain one ipf across several
environments.
Thanks for any input!
Tina



begin 666 test.txt
M1&]C=6UE;G0@5'EP93H@25!&#0II=&5M.B!';&]B86P-"B @5F5R<VEO;CTV
M+C -"B @1FQA9W,],#$P,# Q,# -"B @3&%N9W5A9V5S/3 @," V-2 P(# @
M," P(# @," P(# @," P(# @," P(# @," P(# @," P(# @," P(# @," P
M(# @," P(# @," P(# @," P(# @," P(# @," P(# @," P(# @," P(# -
M"B @3&%N9W5A9V5S3&ES=#U%;F=L:7-H#0H@($1E9F%U;'0@3&%N9W5A9V4]
M,@T*("!#;W!Y($1E9F%U;'0],0T*("!*87!A;F5S92!&;VYT($YA;64]35,@
M1V]T:&EC#0H@($IA<&%N97-E($9O;G0@4VEZ93TY#0H@(%-T87)T($=R861I
M96YT/3 @," R-34-"B @16YD($=R861I96YT/3 @," P#0H@(%=I;F1O=W,@
M1FQA9W,],# P,3 Q,# P,# P,3$P,# P,3$Q,3 P,#$P,3 P,3 -"B @365S
M<V%G92!&;VYT/4U3(%-A;G,@4V5R:68-"B @1F]N="!3:7IE/3@-"B @1&ES
M:R!&:6QE;F%M93U315154 T*("!0871C:"!&;&%G<STP,# P,# P,# P,# P
M,# Q#0H@(%!A=&-H(%1H<F5S:&]L9#TX-0T*("!0871C:"!-96UO<GD]-# P
M, T*("!%6$4@1FEL96YA;64])5]415-47R4N97AE#0H@($944"!#;'5S=&5R
M(%-I>F4],C -"B @5F%R:6%B;&4@3F%M93$]7U1%4U1?#0H@(%9A<FEA8FQE
M($1E9F%U;'0Q/41E=@T*96YD#0II=&5M.B!296UA<FL-"F5N9 T*:71E;3H@
M4F5M87)K#0IE;F0-"FET96TZ(%)E;6%R:PT*96YD#0II=&5M.B!296UA<FL-
9"F5N9 T*:71E;3H@4F5M87)K#0IE;F0-"@``
`
end

.



Relevant Pages

  • Re: Object Reference Counting
    ... for whether you can use a *.bas Module or require the ROT is whether you're ... in a single-threaded environment or a multi-threaded environment. ... EXE would be single, an ActiveX EXE may be single or multiple, DLLs may be ... >> The problem I now have is to do with object reference counting. ...
    (microsoft.public.vb.com)
  • environment variable question
    ... I have an old DOS 'EXE' program witch works in conjunction with batch files. ... the BAT file executes the variable. ... environment, but I am not SURE this is the case. ...
    (microsoft.public.win2000.general)
  • Re: Help me!! Why java is so popular
    ... The late binding to environment could ... but happens to your EXE that was selected/compiled for the single processor that existed at install time? ...
    (comp.lang.java.programmer)
  • Re: Invoking a process on the remote machine
    ... You need to have some sort of environment to run it in. ... I connect to the remote machine using ObjectManagementScope class, but i am not being able to run the exe through normal Win32 process. ...
    (microsoft.public.dotnet.languages.csharp)
  • Changing the SMS exe file name based on a compiler variable?
    ... Based on the value of a compiler variable, I would like to modify the ... Compiler variable: _ENVIRONMENT_ ... SMS package name: package.ipf ... I'd like this flexibility so I could maintain one ipf across several ...
    (microsoft.public.sms.installer)