I am trying to install node JS on my windows-7 desktop. but unable to install it error msg is : Node.js setup wizard ended prematurely
I have run command : reg query HKLM /f node.js /s
C:\Users\Anand Vaidya>reg query HKLM /f node.js /s
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\Folders
C:\Users\I.alam\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Node.j
s\ REG_SZ 1
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\
S-1-5-18\Components\7AF2F219CD048254396417AD1299EB7B
B846977CE014ABB47BB58551CBFE7ED1 REG_SZ C:\Program Files (x86)\Safari\
Apple Application Support\WebKit.resources\inspector\ShowMoreDataGridNode.js
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\
S-1-5-21-2313175759-918084051-1754577449-1002\Components2DE2CA3205882EA5493CB7A
C9277A426
96C4018C0F4F98544B0233DD280838D5 REG_SZ 01:\SOFTWARE\Node.js\Component
s\EnvironmentPathNpmModules
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\
S-1-5-21-2313175759-918084051-1754577449-1002\Components\3FA9057E0CD5FF64F8FB48C
DCA47A800
96C4018C0F4F98544B0233DD280838D5 REG_SZ C:\Program Files (x86)\nodejs\
node_modulesnpm\node_modules\node-gyp\node_modules\path-array\node_modulesarra
y-index\node_modules\debug\node.js
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\
S-1-5-21-2313175759-918084051-1754577449-1002\Components\A37CEAA6FEC91A956AE3C47
2F83A6BBE
96C4018C0F4F98544B0233DD280838D5 REG_SZ 02:\SOFTWARE\Node.js\Component
s\EnvironmentPathNode
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\
S-1-5-21-2313175759-918084051-1754577449-1002\Components\C135159586665BC59BEC5EA
FE5D8F927
96C4018C0F4F98544B0233DD280838D5 REG_SZ 01:\SOFTWARE\Node.js\Component
s\DocumentationShortcuts
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\
S-1-5-21-2313175759-918084051-1754577449-1002\Components\F93E3E7F66A6A8553ABF580
A6DFA4CE1
96C4018C0F4F98544B0233DD280838D5 REG_SZ 01:\SOFTWARE\Node.js\InstallPa
th
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\
S-1-5-21-2313175759-918084051-1754577449-1002\Products\96C4018C0F4F98544B0233DD2
80838D5\InstallProperties
DisplayName REG_SZ Node.js
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib_V2Provi
ders{1e2e15d7-3760-470e-8699-b9db5248edd5}{3a22a8ec-297c-48ac-ab15-33ec93033fd
8}
NeutralName REG_SZ Node.js
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninsta
ll{C8104C69-F4F0-4589-B420-33DD8280835D}
DisplayName REG_SZ Node.js
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Perf
lib_V2Providers{1e2e15d7-3760-470e-8699-b9db5248edd5}{3a22a8ec-297c-48ac-ab15
-33ec93033fd8}
NeutralName REG_SZ Node.js
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Node.js
@vaidyaanand Thanks for reporting! That is actually an interesting list of registry entries. Would you also be able to create an installation log with
msiexec /i <filename>.msi /l*v InstallLog.txt
and share it here? Thanks!
InstallLog.txt
Please check my install logs
@joaocgreis I have uploaded the logs please check it.
Property(S): ProductToBeRegistered = 1
MSI (s) (94:78) [16:50:21:415]: MainEngineThread is returning 1603
MSI (s) (94:E8) [16:50:21:417]: RESTART MANAGER: Session closed.
MSI (s) (94:E8) [16:50:21:418]: User policy value 'DisableRollback' is 0
MSI (s) (94:E8) [16:50:21:418]: Machine policy value 'DisableRollback' is 0
MSI (s) (94:E8) [16:50:21:418]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (94:E8) [16:50:21:418]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
MSI (s) (94:E8) [16:50:21:419]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
MSI (s) (94:E8) [16:50:21:419]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (s) (94:E8) [16:50:21:420]: Restoring environment variables
MSI (s) (94:E8) [16:50:21:420]: Destroying RemoteAPI object.
MSI (s) (94:9C) [16:50:21:420]: Custom Action Manager thread ending.
MSI (c) (14:18) [16:50:21:423]: Back from server. Return value: 1603
MSI (c) (14:18) [16:50:21:424]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (c) (14:18) [16:50:21:424]: PROPERTY CHANGE: Deleting SECONDSEQUENCE property. Its current value is '1'.
Action ended 16:50:21: ExecuteAction. Return value 3.
MSI (c) (14:18) [16:50:21:424]: Doing action: FatalError
MSI (c) (14:18) [16:50:21:424]: Note: 1: 2205 2: 3: ActionText
Action 16:50:21: FatalError.
Action start 16:50:21: FatalError.
Action 16:50:21: FatalError. Dialog created
Action ended 16:50:23: FatalError. Return value 2.
Action ended 16:50:23: INSTALL. Return value 3.
MSI (c) (14:18) [16:50:23:498]: Destroying RemoteAPI object.
MSI (c) (14:F8) [16:50:23:499]: Custom Action Manager thread ending.
Property(C): UpgradeCode = {47C07A3A-42EF-4213-A85D-8F5A59077C28}
Property(C): INSTALLDIR = C:\Program Files\nodejs\
MSI (s) (94:78) [16:50:20:944]: Executing op: ComponentUnregister(ComponentId={1A357DF6-3AF1-5A76-AE55-3676CCFA4513},ProductKey={B5FEC613-8EBC-43C3-A232-693D96E07CCF},BinaryType=1,)
MSI (s) (94:78) [16:50:20:944]: Executing op: ComponentUnregister(ComponentId={BE71D092-38E4-5DED-B176-D60079E51615},ProductKey={B5FEC613-8EBC-43C3-A232-693D96E07CCF},BinaryType=1,)
MSI (s) (94:78) [16:50:20:945]: Executing op: End(Checksum=0,ProgressTotalHDWord=0,ProgressTotalLDWord=0)
MSI (s) (94:78) [16:50:20:945]: Error in rollback skipped. Return: 5
MSI (s) (94:78) [16:50:20:948]: Calling SRSetRestorePoint API. dwRestorePtType: 13, dwEventType: 103, llSequenceNumber: 281, szDescription: "".
MSI (s) (94:78) [16:50:20:948]: The call to SRSetRestorePoint API succeeded. Returned status: 0.
MSI (s) (94:78) [16:50:20:948]: Unlocking Server
MSI (s) (94:78) [16:50:21:349]: PROPERTY CHANGE: Deleting UpdateStarted property. Its current value is '1'.
Action ended 16:50:21: INSTALL. Return value 3.
Property(S): UpgradeCode = {47C07A3A-42EF-4213-A85D-8F5A59077C28}
Property(S): INSTALLDIR = C:\Program Files\nodejs\
Property(S): ApplicationProgramsFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Node.js\
Property(S): NpmFolder = C:\Program Files\nodejs\node_modulesnpm\
Property(S): AppDataDir = C:\Usersa.prasad\AppData\Roamingnpm\
s) (94:78) [16:50:08:009]: Source for file 'npm.sh' is compressed
InstallFiles: File: npm, Directory: C:\Program Files\nodejs\, Size: 867
MSI (s) (94:78) [16:50:08:010]: Executing op: CacheSizeFlush(,)
MSI (s) (94:78) [16:50:08:010]: Executing op: ActionStart(Name=RollbackRegisterPerfmonManifest,,)
Action 16:50:08: RollbackRegisterPerfmonManifest.
MSI (s) (94:78) [16:50:08:013]: Executing op: CustomActionSchedule(Action=RollbackRegisterPerfmonManifest,ActionType=3393,Source=BinaryData,Target=CAQuietExec,CustomActionData="unlodctr.exe" /m:"C:\Program Files\nodejs\node_perfctr_provider.man")
MSI (s) (94:78) [16:50:08:013]: Executing op: ActionStart(Name=RegisterPerfmonManifest,,)
Action 16:50:08: RegisterPerfmonManifest.
MSI (s) (94:78) [16:50:08:014]: Executing op: CustomActionSchedule(Action=RegisterPerfmonManifest,ActionType=3073,Source=BinaryData,Target=CAQuietExec,CustomActionData="lodctr.exe" /m:"C:\Program Files\nodejs\node_perfctr_provider.man" "C:\Program Files\nodejs")
MSI (s) (94:40) [16:50:08:016]: Invoking remote custom action. DLL: C:\Windows\Installer\MSIFF01.tmp, Entrypoint: CAQuietExec
MSI (s) (94:9C) [16:50:08:016]: Generating random cookie.
MSI (s) (94:9C) [16:50:08:017]: Created Custom Action Server with PID 1672 (0x688).
MSI (s) (94:30) [16:50:08:036]: Running as a service.
MSI (s) (94:30) [16:50:08:037]: Hello, I'm your 32bit Elevated Non-remapped custom action server.
CAQuietExec:
CAQuietExec: Error 0x8007000d: Command line returned an error.
CAQuietExec: Error 0x8007000d: QuietExec Failed
CAQuietExec: Error 0x8007000d: Failed in ExecCommon method
CustomAction RegisterPerfmonManifest returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Action ended 16:50:08: InstallFinalize. Return value 3.
MSI (s) (94:78) [16:50:08:485]: User policy value 'DisableRollback' is 0
MSI (s) (94:78) [16:50:08:485]: Machine policy value 'DisableRollback' is 0
MSI (s) (94:78) [16:50:08:507]: Executing op: Header(Signature=1397708873,Version=500,Timestamp=1228178997,LangId=1033,Platform=589824,ScriptType=2,ScriptMajorVersion=21,ScriptMinorVersion=4,ScriptAttributes=1)
MSI (s) (94:78) [16:50:08:507]: Executing op: DialogInfo(Type=0,Argument=1033)
MSI (s) (94:78) [16:50:08:507]: Executing op: DialogInfo(Type=1,Argument=Node.js)
MSI (s) (94:78) [16:50:08:507]: Executing op: RollbackInfo(,RollbackAction=Rollback,RollbackDescription=Rolling back action:,RollbackTemplate=[1],CleanupAction=RollbackCleanup,CleanupDescription=Removing backup files,CleanupTemplate=File: [1])
Action 16:50:08: Rollback. Rolling back action:
Rollback: RegisterPerfmonManifest
MSI (s) (94:78) [16:50:08:510]: Executing op: ActionStart(Name=RegisterPerfmonManifest,,)
MSI (s) (94:78) [16:50:08:510]: Executing op: ProductInfo(ProductKey={B5FEC613-8EBC-43C3-A232-693D96E07CCF},ProductName=Node.js,PackageName=node-v4.5.0-x64.msi,Language=1033,Version=67436544,Assignment=1,ObsoleteArg=0,ProductIcon=NodeIcon,,PackageCode={57FEA546-1C5C-439F-B926-55347378C5F5},,,InstanceType=0,LUASetting=0,RemoteURTInstalls=0,ProductDeploymentFlags=3)
Rollback: RollbackRegisterPerfmonManifest
MSI (s) (94:78) [16:50:08:511]: Executing op: ActionStart(Name=RollbackRegisterPerfmonManifest,,)
MSI (s) (94:78) [16:50:08:511]: Executing op: CustomActionRollback(Action=RollbackRegisterPerfmonManifest,ActionType=3393,Source=BinaryData,Target=CAQuietExec,CustomActionData="unlodctr.exe" /m:"C:\Program Files\nodejs\node_perfctr_provider.man")
MSI (s) (94:78) [16:50:08:514]: Invoking remote custom action. DLL: C:\Windows\Installer\MSIF5.tmp, Entrypoint: CAQuietExec
CAQuietExec:
CAQuietExec: Warning: From C:\Program Files\nodejs\node_perfctr_provider.man, unable to find matched provider {793c9b44-3d6b-4f57-b5d7-4ff80adcf9a2} in system repository, error code is 2.
Rollback: Copying new files
MSI (s) (94:78) [16:50:08:567]: Executing op: ActionStart(Name=InstallFiles,Description=Copying new files,Template=File: [1], Directory: [9], Size: [6])
MSI (s) (94:78) [16:50:08:568]: Executing op: SetTargetFolder(Folder=C:\Program Files\nodejs)
MSI (s) (94:78) [16:50:08:568]: Executing op: FileRemove(,FileName=C:\Program Files\nodejsnpm,,)
MSI (s) (94:78) [16:50:08:568]: Note: 1: 2318 2:
MSI (s) (94:78) [16:50:08:569]: Executing op: SetTargetFolder(Folder=C:\Program Files\nodejs\node_modulesnpm)
MSI (s) (94:78) [16:50:08:569]: Executing op: FileRemove(,FileName=C:\Program Files\nodejs\node_modulesnpmnpmrc,,)
MSI (s) (94:78) [16:50:08:570]: Note: 1: 2318 2:
MSI (s) (94:78) [16:50:08:570]: Executing op: SetTargetFolder(Folder=C:\Program Files\nodejs)
MSI (s) (94:78) [16:50:08:570]: Executing op: FileRemove(,FileName=C:\Program Files\nodejsnpm.cmd,,)
MSI (s) (94:78) [16:50:08:571]: Note: 1: 2318 2:
MSI (s) (94:78) [16:50:08:571]: Executing op: FileRemove(,FileName=C:\Program Files\nodejs\nodevars.bat,,)
MSI (s) (94:78) [16:50:08:572]: Note: 1: 2318 2:
MSI (s) (94:78) [16:50:08:572]: Executing op: FileRemove(,FileName=C:\Program Files\nodejs\node_perfctr_provider.man,,)
MSI (s) (94:78) [16:50:08:572]: Note: 1: 2318 2:
MSI (s) (94:78) [16:50:08:573]: Executing op: FileRemove(,FileName=C:\Program Files\nodejs\node_etw_provider.man,,)
MSI (s) (94:78) [16:50:08:574]: Note: 1: 2318 2:
MSI (s) (94:78) [16:50:08:574]: Executing op: FileRemove(,FileName=C:\Program Files\nodejs\node.exe,,)
MSI (s) (94:78) [16:50:08:576]: Note: 1: 2318 2:
MSI (s) (94:78) [16:50:08:576]: Executing op: SetTargetFolder(Folder=C:\Program Files\nodejs\node_modulesnpm\node_modulesnpm-registry-client\node_modules\concat-stream)
MSI (s) (94:78) [16:50:08:576]: Executing op: FileRemove(,FileName=C:\Program Files\nodejs\node_modulesnpm\node_modulesnpm-registry-client\node_modules\concat-stream\index.js,,)
MSI (s) (94:78) [16:50:08:577]: Note: 1: 2318 2:
MSI (s) (94:78
All above pasted errors are from this log file
@joaocgreis Did you find any solution ?
@vaidyaanand can you run
LODCTR /S:lodctr_backup_20160921.ini
and share the resulting file here?
I have resolved my Issue by just marking "performance counters" (inside installation setup) to "install this feature when require" during installation.
@vaidyaanand that works, if you don't need performance counters. I'd like to try to fix this issue on the Node MSI so it would help all users, if you could still share that file it would be a big help. Thanks!
@joaocgreis I have already download node.js and run following commands :
Type “C:” without the quotation marks and Enter.
Type “CDwindows\system32” without the quotation marks and Enter.
Type “LodCtr.exe /S:Backup_Original.INI” without the quotation marks and Enter.
Note: This let’s you backup the performance counters before we rebuild.
Type “LodCtr.exe /R:PerfStringBackup.INI” without the quotation marks and Enter.
Would this affect my result ?
if not I will share that file.
@vaidyaanand Can you share C:\windows\system32\Backup_Original.INI? That seems to be exactly what I need to get a repro for this!
Sure !
@joaocgreis Please check file
Backup_Original.txt
@vaidyaanand thanks! I still can't repro this issue, but I might be getting closer to a fix. I believe this can be closed now, but we can reopen if the problem persists. Thanks again for your help!
I have same problem.
Plantform: WIN7 32bit
Nodejs installer version: node-v6.10.0-x86.msi
And here is install log file.
nodejs-install.txt
@cheanss @vaidyaanand
@fwp728 Hi
I was having the same trouble with my Node.JS installer . It is not issue that the installer has just need to change some settings. I did the below steps.
1 - Clean TEMP Folder
2 - Disable your antivirus for 10 mins or so.
3 - Then do the below steps.
4 - Go to C:>users>"UserName">AppData>Local>Temp
5 - Right Click on Temp and go to Properties
6 - Select Security Tab
7 - Select the User and check the permission and controll give the user full control by Checking Full Control on permission
8 - Go Ahead and Install Node.js and Enjoy.
Just disabling antivirus fixed it for me.
Most helpful comment
Just disabling antivirus fixed it for me.