I would like to create a service with a displayname different than the servicename, and a particular description.
In my company, the guy who was doing installation quit and I've to take his script and modify them.
I'm using this to create the service
But description, display name and interact doesn't work. Type doesn't work either.!insertmacro SERVICE "create" "$R2" \
"path=$R3;type=$R4;interact=$R5;display=$R6;machine=$R7;user=$R8\$R9;password=$0;desc=$1;"
To modify the type, i've to do :
To modify description, i'm doing this :WriteRegDWORD HKLM \
"SYSTEM\CurrentControlSet\Services\${PRODUCT_SHORT_NAME}-${PRODUCT_VERSION}-gas-$R6" \
"Start" 0x00000002
To start the create service :WriteRegStr HKLM \
"SYSTEM\CurrentControlSet\Services\${PRODUCT_SHORT_NAME}-${PRODUCT_VERSION}-gas-$R6" \
"Description" "Manages Genero applications on the server and their connectivity \
with remote ActiveX and WebServices"
All of theses "tricks" work for me (even I'm sure there are far better way to do that).!insertmacro SERVICE "start" \
"${PRODUCT_SHORT_NAME}-${PRODUCT_VERSION}-gas-$R6" ""
Now I want to modify the display name :
The registry's datas are up-to-date, but in the Services administration tools, it's the servicename that is displayed AND in the property window of the service, the display name is good.WriteRegStr HKLM \
"SYSTEM\CurrentControlSet\Services\${PRODUCT_SHORT_NAME}-${PRODUCT_VERSION}-gas-$R6"\
"DisplayName" "Genero Application Server (GEP)"
I've tested on w2k and wxp for the same result
So i'm quited confused on how can i achieve to create the desired service.
I've read about SC.exe but can't find it on my w2k computer.
I've also see this in archive Service Control Manager plugin but don't know how to use it.
Can someone help me ? Thx !!
Geoffrey