NT Services and AdminStudio - Taking a snapshot
Hi,
I am attempting to repackage the IIS and SMTP Windows Components from the Windows XP with Service Pack 1 CD-ROM. The snapshot process is ok and I am able to edit my install shield project fine, but for some reason when I install the finished MSI file the IIS, SMTP and W3SVC services fail to start. I also get access denied errors during install saying the install couldn't write keys to HKLM\SYSTEM\CurrentControlSet\Enum and HKLM\SYSTEM\CurrentControlSet\Control. I have gone back and added Registry Permissions (Full Control to the Everyone group) but still am not having any success.
Is there any special tricks when repackaging NT Services? Also is there any doco about this I can read?
Thanks for your help.
M
I am attempting to repackage the IIS and SMTP Windows Components from the Windows XP with Service Pack 1 CD-ROM. The snapshot process is ok and I am able to edit my install shield project fine, but for some reason when I install the finished MSI file the IIS, SMTP and W3SVC services fail to start. I also get access denied errors during install saying the install couldn't write keys to HKLM\SYSTEM\CurrentControlSet\Enum and HKLM\SYSTEM\CurrentControlSet\Control. I have gone back and added Registry Permissions (Full Control to the Everyone group) but still am not having any success.
Is there any special tricks when repackaging NT Services? Also is there any doco about this I can read?
Thanks for your help.
M
0 Comments
[ + ] Show comments
Answers (4)
Please log in to answer
Posted by:
MSI_repackager
19 years ago
Hi,
An update to this. I have been able to get around the registry permission problems by adding the 'AlwaysInstallElevated' key to and HKCU\Software\Policies\Microsoft\Windows\Installer. I still however am getting an MSI Error 1920 Access Denied unable to start service. The Startname field is left blank in the ServiceInstall table, which, according to the documentation means the LocalSystem account will be used. But this doesn't seem to be enough to do it. Any suggestions gratefully appreaciated.
M
An update to this. I have been able to get around the registry permission problems by adding the 'AlwaysInstallElevated' key to and HKCU\Software\Policies\Microsoft\Windows\Installer. I still however am getting an MSI Error 1920 Access Denied unable to start service. The Startname field is left blank in the ServiceInstall table, which, according to the documentation means the LocalSystem account will be used. But this doesn't seem to be enough to do it. Any suggestions gratefully appreaciated.
M
Posted by:
Neo64fr
19 years ago
Posted by:
MSI_repackager
19 years ago
Hi,
Sorry for the delayed response. I have used a comma as the delimiter for each field. ServiceInstall Table is as follows:
W3SVC,W3SVC,World Wide Web Publishing,32,2,1,blank,IISADMIN[~][~],blank,blank,blank,inetinfo.exe_service,description(to long to write here).
IISADMIN,IISADMIN,IIS Admin,32,2,1,blank,RpcSs[~]SamSs[~][~],blank,blank,blank,inetinfo.exe_service,description(to long to write here).
SMTPSVC,SMTPSVC,Simple Mail Transfer Protocol,32,2,1,blank,EventLog[~]IISADMIN[~][~],blank,blank,blank,inetinfo.exe_service,description(to long to write here).
I have tried changing the ServiceType to 16 instead of 32 which is own process instead of shared without success. Also I have the Event field in the ServiceControl table set to 161 which equals Install Start = Yes and Uninstall Stop and Uninstall Delete equal to Yes. I have also tried combinations here to but without any success.
I am now looking at the AppID's in HKCR to see whether this might be related.
Please let me know if there is anything I should be changing here...
Thanks
M
Sorry for the delayed response. I have used a comma as the delimiter for each field. ServiceInstall Table is as follows:
W3SVC,W3SVC,World Wide Web Publishing,32,2,1,blank,IISADMIN[~][~],blank,blank,blank,inetinfo.exe_service,description(to long to write here).
IISADMIN,IISADMIN,IIS Admin,32,2,1,blank,RpcSs[~]SamSs[~][~],blank,blank,blank,inetinfo.exe_service,description(to long to write here).
SMTPSVC,SMTPSVC,Simple Mail Transfer Protocol,32,2,1,blank,EventLog[~]IISADMIN[~][~],blank,blank,blank,inetinfo.exe_service,description(to long to write here).
I have tried changing the ServiceType to 16 instead of 32 which is own process instead of shared without success. Also I have the Event field in the ServiceControl table set to 161 which equals Install Start = Yes and Uninstall Stop and Uninstall Delete equal to Yes. I have also tried combinations here to but without any success.
I am now looking at the AppID's in HKCR to see whether this might be related.
Please let me know if there is anything I should be changing here...
Thanks
M
Posted by:
MSI_repackager
19 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.