Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logtalk 3.56 application installation issue. #148

Open
deviAshokkumar opened this issue Jul 8, 2022 · 11 comments
Open

Logtalk 3.56 application installation issue. #148

deviAshokkumar opened this issue Jul 8, 2022 · 11 comments

Comments

@deviAshokkumar
Copy link

I am validating the LogTalk3.5.6.exe application silently , but however I can see below error message during silent installation for the first time.

Parameters are used below but still I can see the error.

"" /SP- /VERYSILENT /SUPPRESSMSGBOX /NORESTART

Also however for uninstallation , it is going to user documents folder where as installed with admin Or upon installing with system context it is installing in system profile.

Could you please help me to provide install and uninstallation instructions with command line for silent, that would be helpful to me to validate.

Regards,
Ashok

@pmoura
Copy link
Member

pmoura commented Jul 8, 2022

You didn't include the error message... From your mail yesterday:

Failed to expand shell folder constant "userdocs"

Doing some search in this error, it seems the issue may be due to a Windows setup where the "My Documents" folder either doesn't exist or is relocated to a network drive. Can you confirm?

It would also help to know which Windows version are you using and under which user is the installer being run.

@deviAshokkumar
Copy link
Author

I am using windows 10 operating system and using admin user with system context.

image

Please check the image and help me on this.

@pmoura
Copy link
Member

pmoura commented Jul 8, 2022

Does your admin user have a local "My Documents" folder?

@deviAshokkumar
Copy link
Author

Yes, Of course. My understanding is while extracting the files during install, it is giving below error in log file.

Log file:

2022-07-08 15:13:52.198 Log opened. (Time zone: UTC+05:30)
2022-07-08 15:13:52.198 Setup version: Inno Setup version 6.2.0
2022-07-08 15:13:52.198 Original Setup EXE: C:\temp2\logtalk-3.56.0.exe
2022-07-08 15:13:52.198 Setup command line: /SL5="$40382,10536813,831488,C:\temp2\logtalk-3.56.0.exe" /SP- /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /LOG="C:\Temp\Install1.log"
2022-07-08 15:13:52.198 Windows version: 10.0.19044 (NT platform: Yes)
2022-07-08 15:13:52.198 64-bit Windows: Yes
2022-07-08 15:13:52.198 Processor architecture: x64
2022-07-08 15:13:52.198 User privileges: Administrative
2022-07-08 15:13:52.245 Administrative install mode: Yes
2022-07-08 15:13:52.245 Install mode root key: HKEY_LOCAL_MACHINE
2022-07-08 15:13:52.261 64-bit install mode: No
2022-07-08 15:13:52.276 Created temporary directory: C:\Windows\TEMP\is-D4LJ9.tmp
2022-07-08 15:13:53.104 Warning: SHGetFolderPath failed with code 0x80070002 on folder 0x8005
2022-07-08 15:13:53.104 InitializeWizard raised an exception (fatal).
2022-07-08 15:13:53.104 Exception message:
2022-07-08 15:13:53.104 Defaulting to OK for suppressed message box (OK):
Runtime error (at 48:2857):

                      Internal error: Failed to expand shell folder constant "userdocs"

2022-07-08 15:13:53.104 Deinitializing Setup.
2022-07-08 15:13:53.104 Log closed.

@pmoura
Copy link
Member

pmoura commented Jul 8, 2022

Assuming my understanding of system context is correct (I'm not a regular Windows user), the installer cannot perform the default full installation when run in this context, hence the error. Try using /COMPONENTS="base".

@deviAshokkumar
Copy link
Author

You mean try with : /COMPONENTS="base" /SP- /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /LOG="C:\Temp\Install1.log" with full command line?

@pmoura
Copy link
Member

pmoura commented Jul 8, 2022

Yes.

@deviAshokkumar
Copy link
Author

It seems to be not working, below is log file.

2022-07-08 15:28:47.488 Log opened. (Time zone: UTC+05:30)
2022-07-08 15:28:47.488 Setup version: Inno Setup version 6.2.0
2022-07-08 15:28:47.488 Original Setup EXE: C:\temp2\logtalk-3.56.0.exe
2022-07-08 15:28:47.488 Setup command line: /SL5="$305FA,10536813,831488,C:\temp2\logtalk-3.56.0.exe" /COMPONENTS="base" /SP- /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /LOG="C:\Temp\Install1.log"
2022-07-08 15:28:47.488 Windows version: 10.0.19044 (NT platform: Yes)
2022-07-08 15:28:47.488 64-bit Windows: Yes
2022-07-08 15:28:47.488 Processor architecture: x64
2022-07-08 15:28:47.488 User privileges: Administrative
2022-07-08 15:28:47.535 Administrative install mode: Yes
2022-07-08 15:28:47.535 Install mode root key: HKEY_LOCAL_MACHINE
2022-07-08 15:28:47.535 64-bit install mode: No
2022-07-08 15:28:47.535 Created temporary directory: C:\Windows\TEMP\is-3IT1H.tmp
2022-07-08 15:28:48.316 Warning: SHGetFolderPath failed with code 0x80070002 on folder 0x8005
2022-07-08 15:28:48.316 InitializeWizard raised an exception (fatal).
2022-07-08 15:28:48.316 Exception message:
2022-07-08 15:28:48.316 Defaulting to OK for suppressed message box (OK):
Runtime error (at 48:2857):

                      Internal error: Failed to expand shell folder constant "userdocs"

2022-07-08 15:28:48.316 Deinitializing Setup.
2022-07-08 15:28:48.332 Log closed.

@pmoura
Copy link
Member

pmoura commented Jul 8, 2022

It seems then that running the installer in system context is not possible without changes to the installer itself. The installer currently requires to be run by the final user (which can be an admin user).

@deviAshokkumar
Copy link
Author

But we would like to test the app using system context, since we may push the app to the end users. Any alternative solution?

@pmoura
Copy link
Member

pmoura commented Jul 8, 2022

Not that I'm aware. For now, you will need to validate the installer without using system context, running it with either an admin user or a non-privileged user. But I'm open to pull request with fixes/improvements to the installer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants