Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulescreate module with install sql srciptscreate module with install sql srcipts
Previous
 
Next
New Post
2/9/2012 6:47 AM
 

Hello !
i try create module with sql script install.
i create very simple module - in catalog DesktopModules i create directory DnnTable, i put into DnnTable simple acsx  file table.ascx and two files 00.00.01.SqlDataProvider, uninstall.SqlDataProvider for sql script install and uninstall

00.00.01.SqlDataProvider  contains
CREATE TABLE [dbo].[dnn_test](
[name] [nvarchar](200) NULL
) ON [PRIMARY]

uninstall.SqlDataProvider  contains
DROP TABLE [dbo].[dnn_test]

manifest DnnTable.dnn contains
<dotnetnuke type="Package" version="5.0">
<packages>
<package name="DnnTable" type="Module" version="1.0.0">
<friendlyName>Vadim table</friendlyName>
<components>
<component type="Script">
<scripts>
<script type="Install">
<name>DesktopModules\DnnTable\00.00.01.SqlDataProvider</name>
<version>00.00.01</version>
</script>
<script type="UnInstall">
<name>DesktopModules\DnnTable\Uninstall.SqlDataProvider</name>
</script>
</scripts>
</component>
<component type="Module">
<desktopModule>
<moduleName>DnnTable</moduleName>
<foldername>DnnTable</foldername>
<businessControllerClass />
<supportedFeatures />
<moduleDefinitions>
<moduleDefinition>
<friendlyName>DnnTable</friendlyName>
<defaultCacheTime>0</defaultCacheTime>
<moduleControls>
<moduleControl>
<controlKey />
<controlSrc>DesktopModules/DnnTable/table.ascx</controlSrc>
<controlTitle />
<controlType>View</controlType>
<iconFile />
<helpUrl />
<viewOrder>0</viewOrder>
</moduleControl>
</moduleControls>
</moduleDefinition>
</moduleDefinitions>
</desktopModule>
</component>
</components>
</package>
</packages>

 </dotnetnuke>

I install module  on page host- extentions and  my table dnn_test do not created ! file 00.00.01.SqlDataProvider do not execute.
i uninstall module - file uninstall.SqlDataProvider runs once.

why my module do not execute install script 00.00.01.SqlDataProvider ? 

 
New Post
2/9/2012 9:31 AM
 

I have never seen the relative path to a script (or other component for that matter) included as the value for the <name> element and believe that the <name> element must contain only the name of the script file. Try the following change in your manifest:

<scripts> 
        <basePath>DesktopModules\DnnTable</basePath>
        < script type="Install">
            < name>00.00.01.SqlDataProvider</name>
            < version>00.00.01</version>
        < /script>
        < script type="UnInstall"> 
            < name>Uninstall.SqlDataProvider</name> 
        < /script>
< /scripts>

Also confirm that the script file is actually contained in the .zip package.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulescreate module with install sql srciptscreate module with install sql srcipts


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out